class ContextListener implements ListenerInterface
ContextListener manages the SecurityContext persistence through a session.
Methods
| __construct(SecurityContextInterface $context, array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null) | ||
|
handle(GetResponseEvent $event)
This interface must be implemented by firewall listeners. |
||
|
onKernelResponse(FilterResponseEvent $event)
Writes the SecurityContext to the session. |
Details
at line 42
public
__construct(SecurityContextInterface $context, array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null)
at line 66
public
handle(GetResponseEvent $event)
This interface must be implemented by firewall listeners.
at line 105
public
onKernelResponse(FilterResponseEvent $event)
Writes the SecurityContext to the session.