Skip to content

Commit 31ea146

Browse files
committed
minor #17128 add alternative method to force version with symfony/flex (alexislefebvre)
This PR was merged into the 4.4 branch. Discussion ---------- add alternative method to force version with symfony/flex I find it more consistent to use `composer` on all steps instead of the environment variable `SYMFONY_REQUIRE`. So I propose to explain this method. Commits ------- f2f03c8 add alternative method to force version with symfony/flex
2 parents f1f5f7d + f2f03c8 commit 31ea146

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bundles/best_practices.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ with Symfony Flex to install a specific Symfony version:
228228
229229
# this requires Symfony 5.x for all Symfony packages
230230
export SYMFONY_REQUIRE=5.*
231+
# alternative method: write to the composer.json file
232+
# composer config extra.symfony.require "5.*"
231233
232234
# install Symfony Flex in the CI environment
233235
composer global require --no-progress --no-scripts --no-plugins symfony/flex

0 commit comments

Comments
 (0)