AuthControllerAuthenticator
extends AbstractLoginFormAuthenticator
uses
TargetPathTrait
Table of Contents
Constants
-
LOGIN_ROUTE
: mixed = 'app_login'
Properties
-
$passwordHasher
: UserPasswordHasherInterface
-
$urlGenerator
: UrlGeneratorInterface
-
$userRepository
: UserRepository
Methods
-
__construct()
: mixed
-
authenticate()
: Passport
-
onAuthenticationSuccess()
: Response|null
-
getLoginUrl()
: string
LOGIN_ROUTE
public
mixed
LOGIN_ROUTE
= 'app_login'
$passwordHasher
private
UserPasswordHasherInterface
$passwordHasher
$urlGenerator
read-only
private
UrlGeneratorInterface
$urlGenerator
$userRepository
private
UserRepository
$userRepository
__construct()
public
__construct(UrlGeneratorInterface $urlGenerator, UserRepository $userRepository, UserPasswordHasherInterface $passwordHasher) : mixed
Parameters
-
$urlGenerator
: UrlGeneratorInterface
-
-
$userRepository
: UserRepository
-
-
$passwordHasher
: UserPasswordHasherInterface
-
authenticate()
public
authenticate(Request $request) : Passport
Parameters
-
$request
: Request
-
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
-