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

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

Protected Properties

Property Type Description
$context
$logger

Public Methods

Method Description
__construct ( Symfony\Component\Security\SecurityContext $context, Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null )
read ( Symfony\Component\EventDispatcher\Event $event ) Reads the SecurityContext from the session.
register ( EventDispatcher $dispatcher, integer $priority ) Registers a core.security listener to load the SecurityContext from the session.
write ( Symfony\Component\EventDispatcher\Event $event, Response $response ) Writes the SecurityContext to the session.

Method Details

__construct() public method

public __construct ( Symfony\Component\Security\SecurityContext $context, Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null )
$context Symfony\Component\Security\SecurityContext
$logger Symfony\Component\HttpKernel\Log\LoggerInterface

read() public method

Reads the SecurityContext from the session.
public read ( Symfony\Component\EventDispatcher\Event $event )
$event Symfony\Component\EventDispatcher\Event An Event instance

register() public method

Registers a core.security listener to load the SecurityContext from the session.
public register ( EventDispatcher $dispatcher, integer $priority )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher An EventDispatcher instance
$priority integer The priority

write() public method

Writes the SecurityContext to the session.
public write ( Symfony\Component\EventDispatcher\Event $event, Response $response )
$event Symfony\Component\EventDispatcher\Event An Event instance
$response Symfony\Component\HttpFoundation\Response

Property Details

$context protected_oe property

protected $context

$logger protected_oe property

protected $logger