PHP Class Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
Call setResponse() to set the response that will be returned for the
current request. The propagation of this event is stopped as soon as a
response is set.
You can also call setException() to replace the thrown exception. This
exception will be thrown if no response is set during processing of this
event.
Mostrar archivo
Open project: pmjones/php-framework-benchmarks
Class Usage Examples
Public Methods
Method |
Description |
|
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType, Exception $e ) |
|
|
getException ( ) : Exception |
Returns the thrown exception |
|
setException ( Exception $exception ) |
Replaces the thrown exception |
|
Method Details
__construct()
public method
public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType, Exception $e ) |
$kernel |
Symfony\Component\HttpKernel\HttpKernelInterface |
|
$request |
Symfony\Component\HttpFoundation\Request |
|
$e |
Exception |
|
getException()
public method
Returns the thrown exception
public getException ( ) : Exception |
return |
Exception |
The thrown exception |
setException()
public method
This exception will be thrown if no response is set in the event.
public setException ( Exception $exception ) |
$exception |
Exception |
The thrown exception |