Repository navigation
feat: boot the orchestrated application outside PHPUnit - #10777
Open
paulbalandan wants to merge 1 commit into
Open
paulbalandan wants to merge 1 commit into
paulbalandan wants to merge 1 commit into
Conversation
paulbalandan
force-pushed
the
orchestrator-console-boot
branch
3 times, most recently
from
November 18, 2026 07:24
d95f99e to
f346be7
Compare
paulbalandan
force-pushed
the
orchestrator-console-boot
branch
from
November 18, 2026 07:27
f346be7 to
e1e6b88
Compare
This branch has not been deployed
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.
Description
A package that is not run through PHPUnit, such as a script or a static analysis bootstrap file, cannot use framework functions like
env()orservice(), because onlyboot()loads a framework bootstrap, and that one is the test bootstrap. This follows up on #10727.New changes:
bootConsole()boots the framework in the current process throughsystem/util_bootstrap.php. It uses a skeleton of its own, build/orchestrator-console by default, so it does not share one with a running test suite. The skeleton is built only when it is missing or incomplete, andbootConsole(rebuild: true)rebuilds it.build()writes a completion marker as its last step, so a build that was killed is redone.boot()throws when called afterbootConsole()on the same instance.getPathConstants()returns the constants thatboot()defines, andgetFrameworkPath()is now public, so a caller can load another bootstrap file against the skeleton without rebuilding them.getPath()is now final. A subclass overrides the newgetSkeletonPath()instead, andgetPath()appends-consoleand theORCHESTRATOR_TEST_TOKENorTEST_TOKENsuffix to it.util_bootstrap.phpguardsVENDORPATHandCOMPOSER_PATHwithdefined(), like the other constants, so that a caller can define them first.Checklist: