From 27aa85ccdb8db9a003dc23c7b88e10bd652df514 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 3 Nov 2014 19:13:06 -0600 Subject: [PATCH] Remove exception handler. Move to core. --- app/Infrastructure/ExceptionHandler.php | 63 ------------------------- bootstrap/app.php | 2 +- 2 files changed, 1 insertion(+), 64 deletions(-) delete mode 100644 app/Infrastructure/ExceptionHandler.php diff --git a/app/Infrastructure/ExceptionHandler.php b/app/Infrastructure/ExceptionHandler.php deleted file mode 100644 index bb3553af..00000000 --- a/app/Infrastructure/ExceptionHandler.php +++ /dev/null @@ -1,63 +0,0 @@ -log = $log; - } - - /** - * Report or log an exception. - * - * @param \Exception $e - * @return void - */ - public function report(Exception $e) - { - $this->log->error((string) $e); - } - - /** - * Render an exception into a response. - * - * @param \Illuminate\Http\Request $request - * @param \Exception $e - * @return \Symfony\Component\HttpFoundation\Response - */ - public function render($request, Exception $e) - { - return (new SymfonyDisplayer)->createResponse($e); - } - - /** - * Render an exception to the console. - * - * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param \Exception $e - * @return void - */ - public function renderForConsole($output, Exception $e) - { - $output->writeln((string) $e); - } - -} diff --git a/bootstrap/app.php b/bootstrap/app.php index c757cd3f..b7eec51f 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -38,7 +38,7 @@ $app->singleton( 'Illuminate\Contracts\Debug\ExceptionHandler', - 'App\Infrastructure\ExceptionHandler' + 'Illuminate\Foundation\Debug\ExceptionHandler' ); /*