AbstractGuardAuthenticator
class AbstractGuardAuthenticator implements AuthenticatorInterface
An optional base class that creates a PostAuthenticationGuardToken for you.
Methods
| bool | supports(Request $request) Does the authenticator support the given Request? | |
| 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
bool supports(Request $request)
Does the authenticator support the given Request?
If this returns false, the authenticator will be skipped.
Parameters
| Request | $request |
Return Value
| bool |
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 |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.4/Symfony/Component/Security/Guard/AbstractGuardAuthenticator.html