UserAuthenticatorInterface
in
Tags
Table of Contents
Methods
- authenticateUser() : Response|null
- Convenience method to programmatically login a user and return a Response *if any* for success.
Methods
authenticateUser()
Convenience method to programmatically login a user and return a Response *if any* for success.
public
authenticateUser(UserInterface $user, AuthenticatorInterface $authenticator, Request $request[, array<string|int, BadgeInterface> $badges = [] ]) : Response|null
Parameters
- $user : UserInterface
- $authenticator : AuthenticatorInterface
- $request : Request
- $badges : array<string|int, BadgeInterface> = []
-
Optionally, pass some Passport badges to use for the manual login