PHP Класс Symfony\Component\HttpKernel\Security\Firewall\FormAuthenticationListener

Автор: Fabien Potencier ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$authenticationManager
$logger
$options
$securityContext

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
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 )

Описание методов

__construct() публичный Метод

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() абстрактный защищенный Метод

Performs authentication.
abstract protected attemptAuthentication ( Request $request ) : Symfony\Component\Security\Authentication\Token\TokenInterface
$request Symfony\Component\HttpFoundation\Request A Request instance
Результат Symfony\Component\Security\Authentication\Token\TokenInterface The authenticated token, or null if full authentication is not possible

determineTargetUrl() защищенный Метод

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

handle() публичный Метод

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

onFailure() защищенный Метод

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

onSuccess() защищенный Метод

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 register ( EventDispatcher $dispatcher, integer $priority )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher An EventDispatcher instance
$priority integer The priority

Описание свойств

$authenticationManager защищенное свойство

protected $authenticationManager

$logger защищенное свойство

protected $logger

$options защищенное свойство

protected $options

$securityContext защищенное свойство

protected $securityContext