SimpleFormAuthenticationListener
class SimpleFormAuthenticationListener extends AbstractAuthenticationListener
Methods
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, SessionAuthenticationStrategyInterface $sessionStrategy, HttpUtils $httpUtils, string $providerKey, AuthenticationSuccessHandlerInterface $successHandler, AuthenticationFailureHandlerInterface $failureHandler, array $options = array(), LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, CsrfTokenManagerInterface $csrfTokenManager = null, SimpleFormAuthenticatorInterface $simpleAuthenticator = null) | ||
setRememberMeServices(RememberMeServicesInterface $rememberMeServices) Sets the RememberMeServices implementation to use. | from AbstractAuthenticationListener | |
handle(GetResponseEvent $event) Handles form based authentication. | from AbstractAuthenticationListener |
Details
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, SessionAuthenticationStrategyInterface $sessionStrategy, HttpUtils $httpUtils, string $providerKey, AuthenticationSuccessHandlerInterface $successHandler, AuthenticationFailureHandlerInterface $failureHandler, array $options = array(), LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, CsrfTokenManagerInterface $csrfTokenManager = null, SimpleFormAuthenticatorInterface $simpleAuthenticator = null)
Parameters
TokenStorageInterface | $tokenStorage | |
AuthenticationManagerInterface | $authenticationManager | |
SessionAuthenticationStrategyInterface | $sessionStrategy | |
HttpUtils | $httpUtils | |
string | $providerKey | |
AuthenticationSuccessHandlerInterface | $successHandler | |
AuthenticationFailureHandlerInterface | $failureHandler | |
array | $options | |
LoggerInterface | $logger | |
EventDispatcherInterface | $dispatcher | |
CsrfTokenManagerInterface | $csrfTokenManager | |
SimpleFormAuthenticatorInterface | $simpleAuthenticator |
Exceptions
InvalidArgumentException | In case no simple authenticator is provided |
setRememberMeServices(RememberMeServicesInterface $rememberMeServices)
Sets the RememberMeServices implementation to use.
Parameters
RememberMeServicesInterface | $rememberMeServices |
final handle(GetResponseEvent $event)
Handles form based authentication.
Parameters
GetResponseEvent | $event |
Exceptions
RuntimeException | |
SessionUnavailableException |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Security/Http/Firewall/SimpleFormAuthenticationListener.html