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); } }