RememberMeListener
extends AbstractListener
in package
implements
ListenerInterface
Uses
LegacyListenerTrait
RememberMeListener implements authentication capabilities via a cookie.
Tags
Interfaces, Classes, Traits and Enums
- ListenerInterface
- Interface that must be implemented by firewall listeners.
Table of Contents
- $authenticationManager : mixed
- $catchExceptions : mixed
- $dispatcher : mixed
- $logger : mixed
- $rememberMeServices : mixed
- $sessionStrategy : mixed
- $tokenStorage : mixed
- __construct() : mixed
- __invoke() : mixed
- authenticate() : mixed
- Handles remember-me cookie based authentication.
- supports() : bool|null
- Tells whether the authenticate() method should be called or not depending on the incoming request.
Properties
$authenticationManager
private
mixed
$authenticationManager
$catchExceptions
private
mixed
$catchExceptions
= true
$dispatcher
private
mixed
$dispatcher
$logger
private
mixed
$logger
$rememberMeServices
private
mixed
$rememberMeServices
$sessionStrategy
private
mixed
$sessionStrategy
$tokenStorage
private
mixed
$tokenStorage
Methods
__construct()
public
__construct(TokenStorageInterface $tokenStorage, RememberMeServicesInterface $rememberMeServices, AuthenticationManagerInterface $authenticationManager[, LoggerInterface $logger = null ][, EventDispatcherInterface $dispatcher = null ][, bool $catchExceptions = true ][, SessionAuthenticationStrategyInterface $sessionStrategy = null ]) : mixed
Parameters
- $tokenStorage : TokenStorageInterface
- $rememberMeServices : RememberMeServicesInterface
- $authenticationManager : AuthenticationManagerInterface
- $logger : LoggerInterface = null
- $dispatcher : EventDispatcherInterface = null
- $catchExceptions : bool = true
- $sessionStrategy : SessionAuthenticationStrategyInterface = null
Return values
mixed —__invoke()
public
final __invoke(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —authenticate()
Handles remember-me cookie based authentication.
public
authenticate(RequestEvent $event) : mixed
Parameters
- $event : RequestEvent
Return values
mixed —supports()
Tells whether the authenticate() method should be called or not depending on the incoming request.
public
supports(Request $request) : bool|null
Parameters
- $request : Request