PHP Class BackBee\Event\Listener\ExceptionListener

Author: MickaĆ«l Andrieu ([email protected])
Datei anzeigen Open project: backbee/backbee

Public Methods

Method Description
__construct ( BackBee\BBApplication $application ) Class constructor.
onKernelException ( GetResponseForExceptionEvent $event )

Private Methods

Method Description
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.

Method Details

__construct() public method

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

onKernelException() public method

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