Symfony2 API
Class

Symfony\Component\Security\Http\Firewall\ContextListener

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)

Parameters

SecurityContextInterface $context
array $userProviders
$contextKey
LoggerInterface $logger
EventDispatcherInterface $dispatcher

at line 66
public handle(GetResponseEvent $event)

This interface must be implemented by firewall listeners.

Parameters

GetResponseEvent $event A GetResponseEvent instance

at line 105
public onKernelResponse(FilterResponseEvent $event)

Writes the SecurityContext to the session.

Parameters

FilterResponseEvent $event A FilterResponseEvent instance