PHP Класс Bolt\EventListener\ExceptionListener

Автор: Gawain Lynch ([email protected])
Автор: Carson Full ([email protected])
Наследование: implements Symfony\Component\EventDispatcher\EventSubscriberInterface, implements Psr\Log\LoggerAwareInterface, use trait Psr\Log\LoggerAwareTrait, use trait Bolt\Request\ProfilerAwareTrait
Показать файл Открыть проект

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

Свойство Тип Описание
$exceptionController Bolt\Controller\Exception

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

Метод Описание
__construct ( Config $config, Exception $exceptionController, Psr\Log\LoggerInterface $logger ) Constructor.
getSubscribedEvents ( ) : array Return the events to subscribe to.
onBootException ( GetResponseForExceptionEvent $event ) Handle boot initialisation exceptions.
onKernelException ( GetResponseForExceptionEvent $event ) Handle errors thrown in the application.

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

Метод Описание
isJsonRequest ( Request $request ) : boolean Checks if the request content type is JSON.

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

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

Constructor.
public __construct ( Config $config, Exception $exceptionController, Psr\Log\LoggerInterface $logger )
$config Bolt\Config
$exceptionController Bolt\Controller\Exception
$logger Psr\Log\LoggerInterface

getSubscribedEvents() публичный статический Метод

Return the events to subscribe to.
public static getSubscribedEvents ( ) : array
Результат array

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

Checks if the request content type is JSON.
protected isJsonRequest ( Request $request ) : boolean
$request Symfony\Component\HttpFoundation\Request
Результат boolean

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

Handle boot initialisation exceptions.
public onBootException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent

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

Handle errors thrown in the application.
public onKernelException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent

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

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

protected Exception,Bolt\Controller $exceptionController
Результат Bolt\Controller\Exception