Http\Firewall\ContextListener (Component\Security)
Symfony\Component\Security\Http\Firewall\ContextListener
class ContextListener implements ListenerInterface
ContextListener manages the SecurityContext persistence through a session.
Methods
__construct(TokenStorageInterface $tokenStorage, array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null) | ||
handle(GetResponseEvent $event) Reads the Security Token from the session. | ||
onKernelResponse(FilterResponseEvent $event) Writes the security token into the session. |
Details
public __construct(TokenStorageInterface $tokenStorage, array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null)
public handle(GetResponseEvent $event)
Reads the Security Token from the session.
public onKernelResponse(FilterResponseEvent $event)
Writes the security token into the session.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Http/Firewall/ContextListener.html