Skip to content

Commit 472c854

Browse files
alexandre-dauboiswouterj
authored andcommitted
[Security] Fixed missing badges argument for method authenticateUser
1 parent c3d5f1a commit 472c854

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Security/UserAuthenticator.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Symfony\Component\Security\Core\User\UserInterface;
2020
use Symfony\Component\Security\Http\Authentication\UserAuthenticatorInterface;
2121
use Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface;
22+
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
2223

2324
/**
2425
* A decorator that delegates all method calls to the authenticator
@@ -42,9 +43,12 @@ public function __construct(FirewallMap $firewallMap, ContainerInterface $userAu
4243
$this->requestStack = $requestStack;
4344
}
4445

45-
public function authenticateUser(UserInterface $user, AuthenticatorInterface $authenticator, Request $request): ?Response
46+
/**
47+
* {@inheritdoc}
48+
*/
49+
public function authenticateUser(UserInterface $user, AuthenticatorInterface $authenticator, Request $request, array $badges = []): ?Response
4650
{
47-
return $this->getUserAuthenticator()->authenticateUser($user, $authenticator, $request);
51+
return $this->getUserAuthenticator()->authenticateUser($user, $authenticator, $request, $badges);
4852
}
4953

5054
private function getUserAuthenticator(): UserAuthenticatorInterface

0 commit comments

Comments
 (0)