You are here

public function GetResponseForExceptionEvent::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Event/GetResponseForExceptionEvent.php \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent::__construct()

Overrides KernelEvent::__construct

File

vendor/symfony/http-kernel/Event/GetResponseForExceptionEvent.php, line 39

Class

GetResponseForExceptionEvent
Allows to create a response for a thrown exception.

Namespace

Symfony\Component\HttpKernel\Event

Code

public function __construct(HttpKernelInterface $kernel, Request $request, $requestType, \Exception $e) {
  parent::__construct($kernel, $request, $requestType);
  $this
    ->setException($e);
}