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