Http\RememberMe\AbstractRememberMeServices (Component\Security)
Symfony\Component\Security\Http\RememberMe\AbstractRememberMeServices
abstract class AbstractRememberMeServices implements RememberMeServicesInterface, LogoutHandlerInterface
Base class implementing the RememberMeServicesInterface.
Constants
COOKIE_DELIMITER |
Methods
__construct(array $userProviders, string $secret, string $providerKey, array $options = array(), LoggerInterface $logger = null) Constructor. | ||
string | getRememberMeParameter() Returns the parameter that is used for checking whether remember-me services have been requested. | |
string | getSecret() | |
TokenInterface|null | autoLogin(Request $request) Implementation of RememberMeServicesInterface. | |
logout(Request $request, Response $response, TokenInterface $token) Implementation for LogoutHandlerInterface. | ||
loginFail(Request $request) Implementation for RememberMeServicesInterface. | ||
loginSuccess(Request $request, Response $response, TokenInterface $token) Implementation for RememberMeServicesInterface. |
Details
public __construct(array $userProviders, string $secret, string $providerKey, array $options = array(), LoggerInterface $logger = null)
Constructor.
public string getRememberMeParameter()
Returns the parameter that is used for checking whether remember-me services have been requested.
public string getSecret()
final public TokenInterface|null autoLogin(Request $request)
Implementation of RememberMeServicesInterface.
Detects whether a remember-me cookie was set, decodes it, and hands it to subclasses for further processing.
public logout(Request $request, Response $response, TokenInterface $token)
Implementation for LogoutHandlerInterface.
Deletes the cookie.
final public loginFail(Request $request)
Implementation for RememberMeServicesInterface.
Deletes the cookie when an attempted authentication fails.
final public loginSuccess(Request $request, Response $response, TokenInterface $token)
Implementation for RememberMeServicesInterface.
This is called when an authentication is successful.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Http/RememberMe/AbstractRememberMeServices.html