PHP 클래스 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.
파일 보기
프로젝트 열기: pmjones/php-framework-benchmarks
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
__construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType, Exception $e ) |
|
|
getException ( ) : Exception |
Returns the thrown exception |
|
setException ( Exception $exception ) |
Replaces the thrown exception |
|
메소드 상세
public __construct ( Symfony\Component\HttpKernel\HttpKernelInterface $kernel, Request $request, $requestType, Exception $e ) |
$kernel |
Symfony\Component\HttpKernel\HttpKernelInterface |
|
$request |
Symfony\Component\HttpFoundation\Request |
|
$e |
Exception |
|
Returns the thrown exception
public getException ( ) : Exception |
리턴 |
Exception |
The thrown exception |
This exception will be thrown if no response is set in the event.
public setException ( Exception $exception ) |
$exception |
Exception |
The thrown exception |