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

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

Protected Properties

Property Type Description
$authenticationManager
$logger
$options
$securityContext

Public Methods

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

Protected Methods

Method Description
attemptAuthentication ( Request $request ) : Symfony\Component\Security\Authentication\Token\TokenInterface Performs authentication.
determineTargetUrl ( Request $request ) Builds the target URL according to the defined options.
onFailure ( $kernel, Request $request, Exception $failed )
onSuccess ( Request $request, Symfony\Component\Security\Authentication\Token\TokenInterface $token )

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\Security\SecurityContext $securityContext, Symfony\Component\Security\Authentication\AuthenticationManagerInterface $authenticationManager, array $options = [], Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null )
$securityContext Symfony\Component\Security\SecurityContext A SecurityContext instance
$authenticationManager Symfony\Component\Security\Authentication\AuthenticationManagerInterface An AuthenticationManagerInterface instance
$options array An array of options
$logger Symfony\Component\HttpKernel\Log\LoggerInterface A LoggerInterface instance

attemptAuthentication() abstract protected method

Performs authentication.
abstract protected attemptAuthentication ( Request $request ) : Symfony\Component\Security\Authentication\Token\TokenInterface
$request Symfony\Component\HttpFoundation\Request A Request instance
return Symfony\Component\Security\Authentication\Token\TokenInterface The authenticated token, or null if full authentication is not possible

determineTargetUrl() protected method

Builds the target URL according to the defined options.
protected determineTargetUrl ( Request $request )
$request Symfony\Component\HttpFoundation\Request

handle() public method

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

onFailure() protected method

protected onFailure ( $kernel, Request $request, Exception $failed )
$request Symfony\Component\HttpFoundation\Request
$failed Exception

onSuccess() protected method

protected onSuccess ( Request $request, Symfony\Component\Security\Authentication\Token\TokenInterface $token )
$request Symfony\Component\HttpFoundation\Request
$token Symfony\Component\Security\Authentication\Token\TokenInterface

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_oe property

protected $authenticationManager

$logger protected_oe property

protected $logger

$options protected_oe property

protected $options

$securityContext protected_oe property

protected $securityContext