W3cubDocs

/Symfony 4.1

AuthenticationUtils

class AuthenticationUtils

Extracts Security Errors from Request.

Methods

__construct(RequestStack $requestStack)
AuthenticationException|null getLastAuthenticationError(bool $clearSession = true)
string getLastUsername()

Details

__construct(RequestStack $requestStack)

Parameters

RequestStack $requestStack

AuthenticationException|null getLastAuthenticationError(bool $clearSession = true)

Parameters

bool $clearSession

Return Value

AuthenticationException|null

string getLastUsername()

Return Value

string