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, AuthenticationTrustResolverInterface $trustResolver = null)
handle(GetResponseEvent $event)

Reads the Security Token from the session.

onKernelResponse(FilterResponseEvent $event)

Writes the security token into the session.

Details

__construct(TokenStorageInterface $tokenStorage, array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = null)

Parameters

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

handle(GetResponseEvent $event)

Reads the Security Token from the session.

Parameters

GetResponseEvent $event

onKernelResponse(FilterResponseEvent $event)

Writes the security token into the session.

Parameters

FilterResponseEvent $event A FilterResponseEvent instance
doc_Symfony
2016-10-28 06:12:11
Comments
Leave a Comment

Please login to continue.