From 0b3eaaa00794b29ef187bd5fa60b8d58a6d03330 Mon Sep 17 00:00:00 2001 From: Growiel Date: Thu, 22 Aug 2024 11:12:46 +0200 Subject: [PATCH] Support SF7 (#509) * update composer.json and add WebProfilerBundle to the test app * update dependencies to SF7 compatible versions --------- Co-authored-by: bocharsky-bw --- Tests/Functional/BaseTestCase.php | 2 ++ composer.json | 31 ++++++++++++++++--------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/Tests/Functional/BaseTestCase.php b/Tests/Functional/BaseTestCase.php index 84de681..692d834 100644 --- a/Tests/Functional/BaseTestCase.php +++ b/Tests/Functional/BaseTestCase.php @@ -15,6 +15,7 @@ use Symfony\Bundle\FrameworkBundle\FrameworkBundle; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Bundle\TwigBundle\TwigBundle; +use Symfony\Bundle\WebProfilerBundle\WebProfilerBundle; use Symfony\Component\HttpKernel\Kernel; use Translation\Bundle\TranslationBundle; @@ -45,6 +46,7 @@ protected function setUp(): void $kernel->addTestBundle(TwigBundle::class); $kernel->addTestBundle(TranslationBundle::class); + $kernel->addTestBundle(WebProfilerBundle::class); $this->testKernel = $kernel; diff --git a/composer.json b/composer.json index 944f7ae..e28adc8 100644 --- a/composer.json +++ b/composer.json @@ -11,35 +11,36 @@ ], "require": { "php": "^8.1", - "symfony/framework-bundle": "^5.3 || ^6.0", - "symfony/validator": "^5.3 || ^6.0", - "symfony/translation": "^5.3 || ^6.0", - "symfony/twig-bundle": "^5.3 || ^6.0", - "symfony/finder": "^5.3 || ^6.0", - "symfony/intl": "^5.3 || ^6.0", - "symfony/console": "^5.3 || ^6.0", + "symfony/framework-bundle": "^5.3 || ^6.0 || ^7.0", + "symfony/validator": "^5.3 || ^6.0 || ^7.0", + "symfony/translation": "^5.3 || ^6.0 || ^7.0", + "symfony/twig-bundle": "^5.3 || ^6.0 || ^7.0", + "symfony/finder": "^5.3 || ^6.0 || ^7.0", + "symfony/intl": "^5.3 || ^6.0 || ^7.0", + "symfony/console": "^5.3 || ^6.0 || ^7.0", "php-translation/symfony-storage": "^2.1", "php-translation/extractor": "^2.0", "nyholm/nsa": "^1.1", "twig/twig": "^2.14.4 || ^3.3", - "symfony/asset": "^5.3 || ^6.0" + "symfony/asset": "^5.3 || ^6.0 || ^7.0" }, "require-dev": { - "symfony/phpunit-bridge": "^5.2 || ^6.0", + "symfony/phpunit-bridge": "^5.2 || ^6.0 || ^7.0", "bamarni/composer-bin-plugin": "^1.3", "php-translation/translator": "^1.0", "php-http/curl-client": "^1.7 || ^2.0", "php-http/message": "^1.11", "php-http/message-factory": "^1.0.2", - "symfony/twig-bridge": "^5.3 || ^6.0", - "symfony/dependency-injection": "^5.3 || ^6.0", - "symfony/web-profiler-bundle": "^5.3 || ^6.0", - "matthiasnoback/symfony-dependency-injection-test": "^4.1", - "matthiasnoback/symfony-config-test": "^4.1", + "symfony/twig-bridge": "^5.3 || ^6.0 || ^7.0", + "symfony/dependency-injection": "^5.3 || ^6.0 || ^7.0", + "symfony/web-profiler-bundle": "^5.3 || ^6.0 || ^7.0", + "matthiasnoback/symfony-dependency-injection-test": "^5.1", + "matthiasnoback/symfony-config-test": "^5.2", "nyholm/psr7": "^1.1", "nyholm/symfony-bundle-test": "^2.0", - "phpstan/phpstan": "^1.11" + "phpstan/phpstan": "^1.11", + "phpunit/phpunit": "^9.6" }, "suggest": { "php-http/httplug-bundle": "To easier configure your httplug clients."