Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Remove the render override in the exception handler (Fixes #407) (
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored Dec 5, 2024
1 parent ebf9b64 commit dd04bab
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Roots/Acorn/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit dd04bab

Please sign in to comment.