Skip to content

feat(composer): allow specify run order - #635

Merged
Frzk merged 2 commits into
masterfrom
fix/symfony-ux
Nov 12, 2026
Merged

Frzk merged 2 commits into
masterfrom
fix/symfony-ux

Conversation

@Frzk

@Frzk Frzk commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Introduces a new environment variable named PHP_BUILDPACK_RUN_COMPOSER_FIRST, which, when set to true, makes the buildpack run Composer BEFORE npm.

This is useful when running frameworks such as symfony-ux.

Supersedes #494

Introduces a new environment variable
(`PHP_BUILDPACK_RUN_COMPOSER_FIRST`), which, when set to `true`, makes
the buildpack run Composer BEFORE npm.
This is useful when running frameworks such as symfony-ux.
@Frzk Frzk self-assigned this Nov 12, 2026
@Frzk
Frzk requested review from a team, EtienneM, briceamen and matthieu526-scalingo and removed request for a team November 12, 2026 11:30
Comment thread bin/compile
if [ "$PHP_BUILDPACK_NO_NODE" != "true" ] ; then
install_node_deps "$BUILD_DIR"

# By default, we run npm first, and then Composer.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nitpick: can you specify in the comment why it is useful? (eg which framework, like you did in the description)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in 8e518b8

As suggested by @matthieu526-scalingo in PR review
@Frzk
Frzk merged commit 6edaee3 into master Nov 12, 2026
5 checks passed
@Frzk
Frzk deleted the fix/symfony-ux branch November 12, 2026 13:22
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