From a9cab21c0a3989218d44b5318ffa1f874578660d Mon Sep 17 00:00:00 2001 From: Niels Nijens Date: Fri, 27 Oct 2023 13:07:52 +0200 Subject: [PATCH] Change switch-symfony target to use Symfony Flex instead of requiring symfony/symfony --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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