Skip to content

Commit cb696c8

Browse files
committed
[Security] Remove outdated createAuthenticatedToken() leftover
1 parent 871b8f9 commit cb696c8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Authenticator/Debug/TraceableAuthenticator.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,7 @@ public function authenticate(Request $request): Passport
6565

6666
public function createToken(Passport $passport, string $firewallName): TokenInterface
6767
{
68-
return method_exists($this->authenticator, 'createToken') ? $this->authenticator->createToken($passport, $firewallName) : $this->authenticator->createAuthenticatedToken($passport, $firewallName);
69-
}
70-
71-
public function createAuthenticatedToken(Passport $passport, string $firewallName): TokenInterface
72-
{
73-
return $this->authenticator->createAuthenticatedToken($passport, $firewallName);
68+
return $this->authenticator->createToken($passport, $firewallName);
7469
}
7570

7671
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response

0 commit comments

Comments
 (0)