PHP Class Symfony\Component\Security\Http\Firewall\ExceptionListener

Author: Fabien Potencier ([email protected])
ファイルを表示 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\Security\Core\SecurityContextInterface $context, Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface $accessDeniedHandler = null, Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null )
onKernelException ( GetResponseForExceptionEvent $event ) Handles security related exceptions.
register ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) Registers a onKernelException listener to take care of security exceptions.

Private Methods

Method Description
startAuthentication ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $authException )

Method Details

__construct() public method

public __construct ( Symfony\Component\Security\Core\SecurityContextInterface $context, Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface $trustResolver, HttpUtils $httpUtils, Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface $authenticationEntryPoint = null, $errorPage = null, Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface $accessDeniedHandler = null, Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null )
$context Symfony\Component\Security\Core\SecurityContextInterface
$trustResolver Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolverInterface
$httpUtils Symfony\Component\Security\Http\HttpUtils
$authenticationEntryPoint Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface
$accessDeniedHandler Symfony\Component\Security\Http\Authorization\AccessDeniedHandlerInterface
$logger Symfony\Component\HttpKernel\Log\LoggerInterface

onKernelException() public method

Handles security related exceptions.
public onKernelException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent An GetResponseForExceptionEvent instance

register() public method

Registers a onKernelException listener to take care of security exceptions.
public register ( Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher )
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface An EventDispatcherInterface instance