Skip to content

Commit

Permalink
Merge pull request #2021 from hwi/revert-2020-master
Browse files Browse the repository at this point in the history
Revert "fix: incompatibility with Symfony 7.2"
  • Loading branch information
XWB authored Dec 2, 2024
2 parents 2cad77c + 925c4f8 commit 7534507
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 7534507

Please sign in to comment.