diff --git a/Makefile b/Makefile index 8cafa92..c88c3a9 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,11 @@ ifeq ($(filter $(version),5.3 5.4 6.0 6.1 6.2 6.3),) sed -i -e "s/\(\s\+\)\(storage_factory_id:\)/\1# \2/" tests/Functional/App/config.yaml endif - composer require "symfony/symfony:$(version).*" --dev --no-update - composer update symfony/* monolog/monolog --prefer-dist --with-all-dependencies --no-progress -.PHONY: switch-symfony-version + composer global require symfony/flex --no-interaction || true + composer global config --no-plugins allow-plugins.symfony/flex true + SYMFONY_REQUIRE=$(version).* composer update symfony/* monolog/monolog --prefer-dist --with-all-dependencies --no-progress + composer global config --no-plugins allow-plugins.symfony/flex false +.PHONY: switch-symfony test: install ## Run the unit tests. ./vendor/bin/phpunit