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
파일 보기 프로젝트 열기: bolt/bolt

보호된 프로퍼티들

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