PHP Класс BackBee\Event\Listener\ExceptionListener

Автор: Mickaël Andrieu ([email protected])
Показать файл Открыть проект

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

Метод Описание
__construct ( BackBee\BBApplication $application ) Class constructor.
onKernelException ( GetResponseForExceptionEvent $event )

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

Метод Описание
getDebugTraceResponse ( Exception $exception, integer $statusCode ) : Response Return response with debug trace.
getErrorPageResponse ( Exception $exception, integer $statusCode ) : Response Returns response for rendered error page.
getErrorTemplate ( $parameter ) : string Returns the path of the template for the selected http status code or default one.
getHttpStatusCode ( integer $statusCode ) : integer Returns a valid HTTP status code.

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

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

Class constructor.
public __construct ( BackBee\BBApplication $application )
$application BackBee\BBApplication

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

public onKernelException ( GetResponseForExceptionEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent