UserAuthenticator
extends AbstractLoginFormAuthenticator
Table of Contents
-
LOGIN_ROUTE
= 'app_login'
-
$urlGenerator
: UrlGeneratorInterface
-
$userRepository
: mixed
-
__construct()
: mixed
-
authenticate()
: PassportInterface
-
onAuthenticationSuccess()
: Response|null
-
getLoginUrl()
: string
LOGIN_ROUTE
public
mixed
LOGIN_ROUTE
= 'app_login'
$urlGenerator
private
UrlGeneratorInterface
$urlGenerator
$userRepository
private
mixed
$userRepository
__construct()
public
__construct(UrlGeneratorInterface $urlGenerator, UserRepository $userRepository) : mixed
Parameters
-
$urlGenerator
: UrlGeneratorInterface
-
-
$userRepository
: UserRepository
-
Return values
mixed
—
authenticate()
public
authenticate(Request $request) : PassportInterface
Parameters
-
$request
: Request
-
Return values
PassportInterface
—
onAuthenticationSuccess()
public
onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName) : Response|null
Parameters
-
$request
: Request
-
-
$token
: TokenInterface
-
-
$firewallName
: string
-
Return values
Response|null
—
getLoginUrl()
protected
getLoginUrl(Request $request) : string
Parameters
-
$request
: Request
-
Return values
string
—