Add third-party application integration cookbook recipe#476
Open
samdark wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
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.mdcovering 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. |
samdark
commented
May 31, 2026
| { | ||
| require_once $yiiRoot . '/src/bootstrap.php'; | ||
|
|
||
| $runner = new ConsoleApplicationRunner( |
Member
Author
There was a problem hiding this comment.
Can we avoid using runner if another app already handles the entry point?
samdark
commented
May 31, 2026
| { | ||
| require_once $yiiRoot . '/src/bootstrap.php'; | ||
|
|
||
| $runner = new ConsoleApplicationRunner( |
Member
Author
There was a problem hiding this comment.
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.
samdark
commented
May 31, 2026
Member
Author
samdark
left a comment
There was a problem hiding this comment.
Should be more concrete example such as existing Yii2 app.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: