From dd04baba7ca8e0792319a57b4fe7aaa8bfa11927 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 5 Dec 2024 11:41:35 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Remove=20th?= =?UTF-8?q?e=20`render`=20override=20in=20the=20exception=20handler=20(Fix?= =?UTF-8?q?es=20#407)=20(#418)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Roots/Acorn/Exceptions/Handler.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/Roots/Acorn/Exceptions/Handler.php b/src/Roots/Acorn/Exceptions/Handler.php index d8c15d08..2bf9a33d 100644 --- a/src/Roots/Acorn/Exceptions/Handler.php +++ b/src/Roots/Acorn/Exceptions/Handler.php @@ -2,31 +2,11 @@ namespace Roots\Acorn\Exceptions; -use Illuminate\Contracts\Support\Responsable; use Illuminate\Foundation\Exceptions\Handler as FoundationHandler; use Throwable; class Handler extends FoundationHandler { - /** - * Render an exception into an HTTP response. - * - * @param \Illuminate\Http\Request $request - * @return \Symfony\Component\HttpFoundation\Response - * - * @throws \Throwable - */ - public function render($request, Throwable $e) - { - if ($e instanceof Responsable) { - return $e->toResponse($request); - } - - $e = $this->prepareException($this->mapException($e)); - - return $this->prepareResponse($request, $e); - } - /** * Get the default context variables for logging. *