AbstractGuardAuthenticator

class AbstractGuardAuthenticator implements GuardAuthenticatorInterface

An optional base class that creates a PostAuthenticationGuardToken for you.

Methods

GuardTokenInterface createAuthenticatedToken(UserInterface $user, string $providerKey)

Shortcut to create a PostAuthenticationGuardToken for you, if you don't really care about which authenticated token you're using.

Details

GuardTokenInterface createAuthenticatedToken(UserInterface $user, string $providerKey)

Shortcut to create a PostAuthenticationGuardToken for you, if you don't really care about which authenticated token you're using.

Parameters

UserInterface $user
string $providerKey The provider (i.e. firewall) key

Return Value

GuardTokenInterface
doc_Symfony
2016-10-28 06:04:14
Comments
Leave a Comment

Please login to continue.