From 58cb94c443300d19e89306ddcd13438699eed0bd Mon Sep 17 00:00:00 2001 From: Jeroen van den Enden Date: Sat, 11 Nov 2023 09:08:42 +0100 Subject: [PATCH] Support Symfony 7 (#365) * Support Symfony 7 * Fix Symfony 7 compatibility --- .../RefreshTokenAuthenticator.php | 2 +- composer.json | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Security/Http/Authenticator/RefreshTokenAuthenticator.php b/Security/Http/Authenticator/RefreshTokenAuthenticator.php index babd06b..6102ff7 100644 --- a/Security/Http/Authenticator/RefreshTokenAuthenticator.php +++ b/Security/Http/Authenticator/RefreshTokenAuthenticator.php @@ -178,7 +178,7 @@ public function onAuthenticationFailure(Request $request, AuthenticationExceptio return $this->failureHandler->onAuthenticationFailure($request, $exception); } - public function start(Request $request, AuthenticationException $authException = null): ?Response + public function start(Request $request, AuthenticationException $authException = null): Response { $event = new RefreshTokenNotFoundEvent( new MissingTokenException('JWT Refresh Token not found', 0, $authException), diff --git a/composer.json b/composer.json index 15e7781..258beeb 100644 --- a/composer.json +++ b/composer.json @@ -16,18 +16,18 @@ "php": ">=7.4", "doctrine/persistence": "^1.3.3|^2.0|^3.0", "lexik/jwt-authentication-bundle": "^2.0|^3.0", - "symfony/config": "^4.4|^5.4|^6.0", - "symfony/console": "^4.4|^5.4|^6.0", - "symfony/dependency-injection": "^4.4|^5.4|^6.0", + "symfony/config": "^4.4|^5.4|^6.0|^7.0", + "symfony/console": "^4.4|^5.4|^6.0|^7.0", + "symfony/dependency-injection": "^4.4|^5.4|^6.0|^7.0", "symfony/deprecation-contracts": "^2.1|^3.0", - "symfony/event-dispatcher": "^4.4|^5.4|^6.0", - "symfony/http-foundation": "^4.4|^5.4|^6.0", - "symfony/http-kernel": "^4.4|^5.4|^6.0", + "symfony/event-dispatcher": "^4.4|^5.4|^6.0|^7.0", + "symfony/http-foundation": "^4.4|^5.4|^6.0|^7.0", + "symfony/http-kernel": "^4.4|^5.4|^6.0|^7.0", "symfony/polyfill-php80": "^1.15", - "symfony/property-access": "^4.4|^5.4|^6.0", - "symfony/security-bundle": "^4.4|^5.4|^6.0", - "symfony/security-core": "^4.4|^5.4|^6.0", - "symfony/security-http": "^4.4|^5.4|^6.0" + "symfony/property-access": "^4.4|^5.4|^6.0|^7.0", + "symfony/security-bundle": "^4.4|^5.4|^6.0|^7.0", + "symfony/security-core": "^4.4|^5.4|^6.0|^7.0", + "symfony/security-http": "^4.4|^5.4|^6.0|^7.0" }, "require-dev": { "doctrine/annotations": "^1.13|^2.0", @@ -37,8 +37,8 @@ "matthiasnoback/symfony-config-test": "^4.2", "matthiasnoback/symfony-dependency-injection-test": "^4.2", "phpunit/phpunit": "^9.5", - "symfony/cache": "^4.4|^5.4|^6.0", - "symfony/security-guard": "^4.4|^5.4" + "symfony/cache": "^4.4|^5.4|^6.0|^7.0", + "symfony/security-guard": "^4.4|^5.4|^6.0|^7.0" }, "conflict": { "doctrine/mongodb-odm": "<2.2",