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)

No description

handle(GetResponseEvent $event)

Reads the Security Token from the session.

onKernelResponse(FilterResponseEvent $event)

Writes the security token into the session.

static 
handleUnserializeCallback($class)

No description

Details

at line line 44
__construct(TokenStorageInterface $tokenStorage, array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null)

Parameters

TokenStorageInterface $tokenStorage
array $userProviders
$contextKey
LoggerInterface $logger
EventDispatcherInterface $dispatcher

at line line 66
handle(GetResponseEvent $event)

Reads the Security Token from the session.

Parameters

GetResponseEvent $event

at line line 104
onKernelResponse(FilterResponseEvent $event)

Writes the security token into the session.

Parameters

FilterResponseEvent $event

at line line 211
static handleUnserializeCallback($class)

Parameters

$class