Symfony\Component\Security\Http\Firewall\ContextListener
ContextListener manages the SecurityContext persistence through a session.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class ContextListener
implements
ListenerInterface
{
- // members
- private $context;
- private $contextKey;
- private $logger;
- private $userProviders;
- private $dispatcher;
- // methods
- public void __construct()
- public void handle()
- public void onKernelResponse()
- private TokenInterface|null refreshUser()
Hierarchy
Members
private
- $context
- $contextKey
- $dispatcher
- $logger
- $userProviders
Methods
private
- refreshUser() — Refreshes the user by reloading it from the user provider
public
- __construct()
- handle() — Reads the SecurityContext from the session.
- onKernelResponse() — Writes the SecurityContext to the session.