AuthenticationProviderManager
class AuthenticationProviderManager implements AuthenticationManagerInterface
AuthenticationProviderManager uses a list of AuthenticationProviderInterface instances to authenticate a Token.
Methods
| __construct(array $providers, bool $eraseCredentials = true) | ||
| setEventDispatcher(EventDispatcherInterface $dispatcher) | ||
| TokenInterface |  authenticate(TokenInterface $token)  Attempts to authenticate a TokenInterface object.  |  
Details
__construct(array $providers, bool $eraseCredentials = true)
Parameters
| array | $providers | An array of AuthenticationProviderInterface instances | 
| bool | $eraseCredentials | Whether to erase credentials after authentication or not | 
Exceptions
| InvalidArgumentException | 
setEventDispatcher(EventDispatcherInterface $dispatcher)
Parameters
| EventDispatcherInterface | $dispatcher | 
TokenInterface authenticate(TokenInterface $token)
Attempts to authenticate a TokenInterface object.
Parameters
| TokenInterface | $token | The TokenInterface instance to authenticate | 
Return Value
| TokenInterface | An authenticated TokenInterface instance, never null | 
Exceptions
| AuthenticationException | if the authentication fails | 
    © 2004–2017 Fabien Potencier
Licensed under the MIT License.
    http://api.symfony.com/2.8/Symfony/Component/Security/Core/Authentication/AuthenticationProviderManager.html