GuardAuthenticatorInterface::getUser()

UserInterface|null getUser(mixed $credentials, UserProviderInterface $userProvider)

Return a UserInterface object based on the credentials.

The credentials are the return value from getCredentials()

You may throw an AuthenticationException if you wish. If you return null, then a UsernameNotFoundException is thrown for you.

Parameters

mixed $credentials
UserProviderInterface $userProvider

Return Value

UserInterface|null

Exceptions

AuthenticationException
doc_Symfony
2016-10-28 06:20:09
Comments
Leave a Comment

Please login to continue.