Skip to content

Add third-party application integration cookbook recipe#476

Open
samdark wants to merge 1 commit into
masterfrom
cookbook-yii-in-third-party-apps
Open

Add third-party application integration cookbook recipe#476
samdark wants to merge 1 commit into
masterfrom
cookbook-yii-in-third-party-apps

Conversation

@samdark
Copy link
Copy Markdown
Member

@samdark samdark commented May 30, 2026

Adds a cookbook article for bootstrapping selected Yii services inside a host application without running the Yii app, including config group selection, service boundaries, logging, and long-running process cautions. Updates both cookbook navigation locations.

Verification:

  • Reproduced the bootstrap approach in a fresh yiisoft/app template at /tmp/yii-docs-upload-app
  • php verify-third-party-yii-bootstrap.php
  • php -l verify-third-party-yii-bootstrap.php
  • vendor/bin/phpstan analyse verify-third-party-yii-bootstrap.php --no-progress
  • vendor/bin/psalm --no-progress --output-format=console verify-third-party-yii-bootstrap.php
  • npx markdown-link-check src/cookbook/using-yii-in-third-party-apps.md
  • npm run build

Copilot AI review requested due to automatic review settings May 30, 2026 11:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new cookbook recipe explaining how to bootstrap selected Yii3 services from within a third-party host application without running the Yii app itself, and registers the new page in both cookbook navigation locations.

Changes:

  • New cookbook page using-yii-in-third-party-apps.md covering container bootstrap, service boundaries, config groups, logging, and long-running process caveats.
  • Adds the new page to src/cookbook/index.md.
  • Adds the new page to the VitePress sidebar in src/.vitepress/config.js.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/cookbook/using-yii-in-third-party-apps.md New cookbook recipe content.
src/cookbook/index.md Adds link to the new recipe.
src/.vitepress/config.js Adds sidebar entry for the new recipe.

{
require_once $yiiRoot . '/src/bootstrap.php';

$runner = new ConsoleApplicationRunner(
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we avoid using runner if another app already handles the entry point?

{
require_once $yiiRoot . '/src/bootstrap.php';

$runner = new ConsoleApplicationRunner(
Copy link
Copy Markdown
Member Author

@samdark samdark May 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we avoid using runner if another app already handles the entry point? I don't think we need everything that the runner creates as well.

Copy link
Copy Markdown
Member Author

@samdark samdark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be more concrete example such as existing Yii2 app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants