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

Author: Fabien Potencier ([email protected])
Show file Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$authenticationManager
$logger
$securityContext

Public Methods

Method Description
__construct ( Symfony\Component\Security\SecurityContext $securityContext, Symfony\Component\Security\Authentication\AuthenticationManagerInterface $authenticationManager, Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null )
handle ( Symfony\Component\EventDispatcher\Event $event ) Handles X509 authentication.
register ( EventDispatcher $dispatcher, integer $priority )

Protected Methods

Method Description
getPreAuthenticatedData ( Request $request ) : array Gets the user and credentials from the Request.

Method Details

__construct() public method

public __construct ( Symfony\Component\Security\SecurityContext $securityContext, Symfony\Component\Security\Authentication\AuthenticationManagerInterface $authenticationManager, Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null )
$securityContext Symfony\Component\Security\SecurityContext
$authenticationManager Symfony\Component\Security\Authentication\AuthenticationManagerInterface
$logger Symfony\Component\HttpKernel\Log\LoggerInterface

getPreAuthenticatedData() abstract protected method

Gets the user and credentials from the Request.
abstract protected getPreAuthenticatedData ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request A Request instance
return array An array composed of the user and the credentials

handle() public method

Handles X509 authentication.
public handle ( Symfony\Component\EventDispatcher\Event $event )
$event Symfony\Component\EventDispatcher\Event An Event instance

register() public method

public register ( EventDispatcher $dispatcher, integer $priority )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher An EventDispatcher instance
$priority integer The priority

Property Details

$authenticationManager protected property

protected $authenticationManager

$logger protected property

protected $logger

$securityContext protected property

protected $securityContext