From 925c4f8946b28b7e6284cbd1e01d6e523a3a293a Mon Sep 17 00:00:00 2001 From: Karel Date: Mon, 2 Dec 2024 11:26:26 +0100 Subject: [PATCH] Revert "fix: incompatibility with Symfony 7.2" --- .../Http/Firewall/RefreshAccessTokenListener.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Security/Http/Firewall/RefreshAccessTokenListener.php b/src/Security/Http/Firewall/RefreshAccessTokenListener.php index c0c2d4b4d..28a8ec66e 100644 --- a/src/Security/Http/Firewall/RefreshAccessTokenListener.php +++ b/src/Security/Http/Firewall/RefreshAccessTokenListener.php @@ -13,16 +13,15 @@ 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 AuthenticatorInterface $authenticator; + private OAuthAuthenticator $oAuthAuthenticator; public function __construct( - AuthenticatorInterface $authenticator + OAuthAuthenticator $oAuthAuthenticator ) { - $this->authenticator = $authenticator; + $this->oAuthAuthenticator = $oAuthAuthenticator; } /** @@ -34,6 +33,6 @@ public function __construct( */ protected function refreshToken(OAuthToken $token): OAuthToken { - return $this->authenticator->refreshToken($token); + return $this->oAuthAuthenticator->refreshToken($token); } }