From 23f91da11b420cef3000c0afe48826af693b5170 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Sun, 31 Dec 2023 19:23:49 -0300 Subject: [PATCH] Allow packages from "symfony/*" ^7 --- .github/workflows/tests.yaml | 4 ++-- composer.json | 23 +++++++++-------------- src/Provider/UserProvider.php | 2 +- tests/config/config_test.php | 2 +- 4 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b536d238..6d39e1ac 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,7 +8,7 @@ jobs: strategy: matrix: php: - - 8.0 + - 8.2 name: Test ${{ matrix.php }} runs-on: ubuntu-latest @@ -16,7 +16,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: shivammathur/setup-php@v1 + - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} extensions: pdo_sqlite, pdo_mysql, pdo_pgsql diff --git a/composer.json b/composer.json index e975e124..83fd04d2 100644 --- a/composer.json +++ b/composer.json @@ -11,18 +11,18 @@ { "name": "Knplabs", "homepage": "http://knplabs.com" } ], "require": { - "php": ">=8.0", - "doctrine/common": "^3.3", + "php": ">=8.2", + "doctrine/collections": "^1.6.8", "doctrine/persistence": "^2.5|^3.0", "doctrine/dbal": "^3.3", "doctrine/orm": "^2.12", "doctrine/doctrine-bundle": "^2.6", - "symfony/cache": "^5.4|^6.0", - "symfony/dependency-injection": "^5.4|^6.0", - "symfony/http-kernel": "^5.4|^6.0", - "symfony/security-core": "^5.4|^6.0", - "symfony/framework-bundle": "^5.4|^6.0", - "symfony/string": "^5.4|^6.0", + "symfony/cache": "^6.2|^7.0", + "symfony/dependency-injection": "^6.2|^7.0", + "symfony/http-kernel": "^6.2|^7.0", + "symfony/framework-bundle": "^5.4|^6.2|^7.0", + "symfony/security-bundle": "^6.2|^7.0", + "symfony/string": "^5.4|^6.2|^7.0", "symfony/translation-contracts": "^2.4|^3.0", "nette/utils": "^3.2", "ramsey/uuid": "^4.2" @@ -37,14 +37,9 @@ "phpstan/phpstan": "^1.7.10", "phpunit/phpunit": "^9.5", "rector/rector": "^0.13.4", - "symplify/easy-coding-standard": "^10.2.9", - "symplify/phpstan-extensions": "^10.2.9", "phpstan/phpstan-doctrine": "^1.3", "phpstan/phpstan-phpunit": "^1.1", - "symplify/package-builder": "^10.2.9", - "symplify/phpstan-rules": "^10.2.9", - "phpstan/extension-installer": "^1.1", - "symplify/easy-ci": "^10.2.9" + "phpstan/extension-installer": "^1.1" }, "autoload": { "psr-4": { diff --git a/src/Provider/UserProvider.php b/src/Provider/UserProvider.php index 5811cabd..0f7c790c 100644 --- a/src/Provider/UserProvider.php +++ b/src/Provider/UserProvider.php @@ -5,7 +5,7 @@ namespace Knp\DoctrineBehaviors\Provider; use Knp\DoctrineBehaviors\Contract\Provider\UserProviderInterface; -use Symfony\Component\Security\Core\Security; +use Symfony\Bundle\SecurityBundle\Security; final class UserProvider implements UserProviderInterface { diff --git a/tests/config/config_test.php b/tests/config/config_test.php index 7a20bf2e..1f6072b7 100644 --- a/tests/config/config_test.php +++ b/tests/config/config_test.php @@ -9,8 +9,8 @@ use Knp\DoctrineBehaviors\Tests\Provider\TestLocaleProvider; use Knp\DoctrineBehaviors\Tests\Provider\TestUserProvider; use Psr\Log\Test\TestLogger; +use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; -use Symfony\Component\Security\Core\Security; use function Symfony\Component\DependencyInjection\Loader\Configurator\service; return static function (ContainerConfigurator $containerConfigurator): void {