From 31f67fc574872c60762ba4e9ef328e5a50a3d8f7 Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 15 Apr 2024 11:48:10 +0200 Subject: [PATCH 1/3] Allow Symfony 7 packages --- composer.json | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/composer.json b/composer.json index 9275dcd..ff5afe7 100644 --- a/composer.json +++ b/composer.json @@ -8,25 +8,25 @@ "ext-json": "*", "ext-mbstring": "*", "psr/log": "^1.0.2", - "symfony/config": "^4.4|^5.0|^6.0", - "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/config": "^4.4|^5.0|^6.0|^7.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0|^7.0", "symfony/deprecation-contracts": "^2.5|^3.0", - "symfony/form": "^4.4|^5.0|^6.0", - "symfony/http-foundation": "^5.3|^6.0", - "symfony/http-kernel": "^4.4|^5.0|^6.0", + "symfony/form": "^4.4|^5.0|^6.0|^7.0", + "symfony/http-foundation": "^5.3|^6.0|^7.0", + "symfony/http-kernel": "^4.4|^5.0|^6.0|^7.0", "thunderer/shortcode": "^0.6.5|^0.7", "twig/twig": "^1.34|^2.0|^3.0" }, "require-dev": { "phpunit/phpunit": "^8.5|^9.5", - "symfony/browser-kit": "^4.4|^5.4", - "symfony/expression-language": "^4.4|^5.0|^6.0", - "symfony/framework-bundle": "^5.3|^6.0", + "symfony/browser-kit": "^4.4|^5.4|^6.0|^7.0", + "symfony/expression-language": "^4.4|^5.0|^6.0|^7.0", + "symfony/framework-bundle": "^5.3|^6.0|^7.0", "symfony/phpunit-bridge": ">= 6.0", - "symfony/routing": "^4.4|^5.0|^6.0", - "symfony/twig-bundle": "^4.4|^5.0|^6.0", - "symfony/yaml": "^4.4|^5.0|^6.0" + "symfony/routing": "^4.4|^5.0|^6.0|^7.0", + "symfony/twig-bundle": "^4.4|^5.0|^6.0|^7.0", + "symfony/yaml": "^4.4|^5.0|^6.0|^7.0" }, "autoload": { From ddfdd4fe3b913e4b9eb5d75f844fa053e19bd5ce Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 15 Apr 2024 11:49:03 +0200 Subject: [PATCH 2/3] Extend Test-matrix --- .github/workflows/tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 91dedc8..a6d3d95 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,6 +20,8 @@ jobs: - { php-version: 7.2, symfony-locked-version: none, dependency-version: prefer-lowest } - { php-version: 7.4, symfony-locked-version: 5.3.*, dependency-version: prefer-stable } - { php-version: 8.1, symfony-locked-version: none, dependency-version: prefer-stable } + - { php-version: 8.2, symfony-locked-version: none, dependency-version: prefer-stable } + - { php-version: 8.3, symfony-locked-version: none, dependency-version: prefer-stable } name: PHPUnit (PHP ${{matrix.php-version}}, Symfony Version Lock ${{ matrix.symfony-locked-version }}, ${{ matrix.dependency-version }}) steps: - uses: actions/checkout@v3 From 0399110795da6b66a550fd92c0222113ac1610be Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 23 Apr 2024 10:18:03 +0200 Subject: [PATCH 3/3] Registriere den TestController als Service --- tests/Fixtures/config/config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Fixtures/config/config.yml b/tests/Fixtures/config/config.yml index 5478650..2f277fb 100644 --- a/tests/Fixtures/config/config.yml +++ b/tests/Fixtures/config/config.yml @@ -19,3 +19,8 @@ webfactory_shortcode: description: "Description for the 'test-shortcode-guide' shortcode" example: "test-shortcode-guide test=true" test-config-invalid-controller: 'Foo\Bar::baz' + +services: + Webfactory\ShortcodeBundle\Tests\Fixtures\Controller\: + resource: '../Controller/' + tags: [ 'controller.service_arguments' ]