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

Author: Fabien Potencier ([email protected])
Inheritance: implements Symfony\Component\HttpKernel\Security\Firewall\ListenerInterface
ファイルを表示 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_oe property

protected $logoutPath

$securityContext protected_oe property

protected $securityContext

$targetUrl protected_oe property

protected $targetUrl