Skip to content

Commit

Permalink
Revert "fix: incompatibility with Symfony 7.2"
Browse files Browse the repository at this point in the history
  • Loading branch information
XWB authored Dec 2, 2024
1 parent 2cad77c commit 925c4f8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Security/Http/Firewall/RefreshAccessTokenListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand All @@ -34,6 +33,6 @@ public function __construct(
*/
protected function refreshToken(OAuthToken $token): OAuthToken
{
return $this->authenticator->refreshToken($token);
return $this->oAuthAuthenticator->refreshToken($token);
}
}

0 comments on commit 925c4f8

Please sign in to comment.