/** * Render an exception into an HTTP response. * * @param Request $request * @param Exception $exception * * @return Response */ public function render($request, Exception $exception) { $render = $this->renderContainer->getRender($exception); return $render($request, $exception); }
/** * Render an exception into an HTTP response. * * @param Request $request * @param Exception $exception * * @return Response */ public function render($request, Exception $exception) { $render = $this->renderContainer->getRender($exception); $corsHeaders = $this->mergeCorsHeadersTo(); return $render($request, $exception, $corsHeaders); }