Symfony2 API
Class

Symfony\Component\Security\Http\Firewall\LogoutListener

class LogoutListener implements ListenerInterface

LogoutListener logout users.

Methods

__construct(SecurityContextInterface $securityContext, HttpUtils $httpUtils, LogoutSuccessHandlerInterface $successHandler, array $options = array(), CsrfProviderInterface $csrfProvider = null)

Constructor

addHandler(LogoutHandlerInterface $handler)

Adds a logout handler

handle(GetResponseEvent $event)

This interface must be implemented by firewall listeners.

Details

at line 47
public __construct(SecurityContextInterface $securityContext, HttpUtils $httpUtils, LogoutSuccessHandlerInterface $successHandler, array $options = array(), CsrfProviderInterface $csrfProvider = null)

Constructor

Parameters

SecurityContextInterface $securityContext
HttpUtils $httpUtils An HttpUtilsInterface instance
LogoutSuccessHandlerInterface $successHandler A LogoutSuccessHandlerInterface instance
array $options An array of options to process a logout attempt
CsrfProviderInterface $csrfProvider A CsrfProviderInterface instance

at line 66
public addHandler(LogoutHandlerInterface $handler)

Adds a logout handler

Parameters

LogoutHandlerInterface $handler

at line 83
public handle(GetResponseEvent $event)

This interface must be implemented by firewall listeners.

Parameters

GetResponseEvent $event A GetResponseEvent instance