From f2f03c8a911d20146688b4d3054a74a5b5f2cf27 Mon Sep 17 00:00:00 2001 From: Alexis Lefebvre Date: Sun, 7 Aug 2022 16:29:01 +0200 Subject: [PATCH] add alternative method to force version with symfony/flex --- bundles/best_practices.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/best_practices.rst b/bundles/best_practices.rst index 64992cae3a9..4cb57c2187d 100644 --- a/bundles/best_practices.rst +++ b/bundles/best_practices.rst @@ -228,6 +228,8 @@ with Symfony Flex to install a specific Symfony version: # this requires Symfony 5.x for all Symfony packages export SYMFONY_REQUIRE=5.* + # alternative method: write to the composer.json file + # composer config extra.symfony.require "5.*" # install Symfony Flex in the CI environment composer global require --no-progress --no-scripts --no-plugins symfony/flex