PHP Class Symfony\Component\HttpKernel\Security\Firewall\LogoutListener

Author: Fabien Potencier ([email protected])
Inheritance: implements Symfony\Component\HttpKernel\Security\Firewall\ListenerInterface
Show file Open project: pmjones/php-framework-benchmarks

Protected Properties

Property Type Description
$logoutPath
$securityContext
$targetUrl

Public Methods

Method Description
__construct ( Symfony\Component\Security\SecurityContext $securityContext, string $logoutPath, string $targetUrl = '/' ) Constructor
handle ( Symfony\Component\EventDispatcher\Event $event )
register ( EventDispatcher $dispatcher, integer $priority ) Registers a core.security listener.

Method Details

__construct() public method

Constructor
public __construct ( Symfony\Component\Security\SecurityContext $securityContext, string $logoutPath, string $targetUrl = '/' )
$securityContext Symfony\Component\Security\SecurityContext
$logoutPath string The path that starts the logout process
$targetUrl string The URL to redirect to after logout

handle() public method

public handle ( Symfony\Component\EventDispatcher\Event $event )
$event Symfony\Component\EventDispatcher\Event An Event instance

register() public method

Registers a core.security listener.
public register ( EventDispatcher $dispatcher, integer $priority )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher An EventDispatcher instance
$priority integer The priority

Property Details

$logoutPath protected property

protected $logoutPath

$securityContext protected property

protected $securityContext

$targetUrl protected property

protected $targetUrl