12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- namespace Symfony\Component\HttpKernel\Event;
- use Symfony\Component\HttpFoundation\Request;
- use Symfony\Component\HttpKernel\HttpKernelInterface;
- class GetResponseForExceptionEvent extends GetResponseEvent
- {
-
- private $exception;
- public function __construct(HttpKernelInterface $kernel, Request $request, $requestType, \Exception $e)
- {
- parent::__construct($kernel, $request, $requestType);
- $this->setException($e);
- }
-
- public function getException()
- {
- return $this->exception;
- }
-
- public function setException(\Exception $exception)
- {
- $this->exception = $exception;
- }
- }
|