Documentation

UserAuthenticator extends AbstractLoginFormAuthenticator
in package

Table of Contents

LOGIN_ROUTE  = 'app_login'
$urlGenerator  : UrlGeneratorInterface
$userRepository  : mixed
__construct()  : mixed
authenticate()  : PassportInterface
onAuthenticationSuccess()  : Response|null
getLoginUrl()  : string

Constants

Properties

Methods

__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

Search results