PHP 클래스 Symfony\Component\HttpKernel\Security\Firewall\FormAuthenticationListener

저자: Fabien Potencier ([email protected])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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