PHP Класс Symfony\Component\Security\Http\Firewall\ExceptionListener

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

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

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

Приватные методы

Метод Описание
startAuthentication ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $authException )

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

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

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() публичный Метод

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

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

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