From ecd09f0b7b674372e19f371a9c76fb6876e91168 Mon Sep 17 00:00:00 2001 From: Jeroen van den Enden Date: Fri, 29 Nov 2024 12:20:35 +0000 Subject: [PATCH] fix: incompatibility with Symfony 7.2 --- .../Http/Firewall/RefreshAccessTokenListener.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Security/Http/Firewall/RefreshAccessTokenListener.php b/src/Security/Http/Firewall/RefreshAccessTokenListener.php index 28a8ec66e..c0c2d4b4d 100644 --- a/src/Security/Http/Firewall/RefreshAccessTokenListener.php +++ b/src/Security/Http/Firewall/RefreshAccessTokenListener.php @@ -13,15 +13,16 @@ use HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken; use HWI\Bundle\OAuthBundle\Security\Http\Authenticator\OAuthAuthenticator; +use Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface; class RefreshAccessTokenListener extends AbstractRefreshAccessTokenListener { - private OAuthAuthenticator $oAuthAuthenticator; + private AuthenticatorInterface $authenticator; public function __construct( - OAuthAuthenticator $oAuthAuthenticator + AuthenticatorInterface $authenticator ) { - $this->oAuthAuthenticator = $oAuthAuthenticator; + $this->authenticator = $authenticator; } /** @@ -33,6 +34,6 @@ public function __construct( */ protected function refreshToken(OAuthToken $token): OAuthToken { - return $this->oAuthAuthenticator->refreshToken($token); + return $this->authenticator->refreshToken($token); } }