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.
Afficher le fichier
Open project: pmjones/php-framework-benchmarks
Class Usage Examples
Méthodes publiques
Méthode |
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 méthode
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 méthode
Returns the thrown exception
public getException ( ) : Exception |
Résultat |
Exception |
The thrown exception |
setException()
public méthode
This exception will be thrown if no response is set in the event.
public setException ( Exception $exception ) |
$exception |
Exception |
The thrown exception |