Skip to content

Commit 457218d

Browse files
alexandre-dauboiswouterj
authored andcommitted
[Security] Fixed missing badges argument for method authenticateUser
1 parent c3990dd commit 457218d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Authentication/UserAuthenticatorInterface.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\HttpFoundation\Response;
1616
use Symfony\Component\Security\Core\User\UserInterface;
1717
use Symfony\Component\Security\Http\Authenticator\AuthenticatorInterface;
18+
use Symfony\Component\Security\Http\Authenticator\Passport\Badge\BadgeInterface;
1819

1920
/**
2021
* @author Wouter de Jong <[email protected]>
@@ -26,6 +27,8 @@ interface UserAuthenticatorInterface
2627
/**
2728
* Convenience method to programmatically login a user and return a
2829
* Response *if any* for success.
30+
*
31+
* @param BadgeInterface[] $badges Optionally, pass some Passport badges to use for the manual login
2932
*/
30-
public function authenticateUser(UserInterface $user, AuthenticatorInterface $authenticator, Request $request): ?Response;
33+
public function authenticateUser(UserInterface $user, AuthenticatorInterface $authenticator, Request $request, array $badges = []): ?Response;
3134
}

0 commit comments

Comments
 (0)