From 8c37ef3a95576ff83517d6f96218971c0028c9d0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 8 Jan 2016 16:02:15 +0100 Subject: [PATCH] Updated various files after upgrade to laravel 5.2 --- app/Commands/Command.php | 12 ------- app/Console/Kernel.php | 22 ++++--------- app/Events/Event.php | 12 ++----- app/Exceptions/Handler.php | 62 ++++++++++++++++-------------------- app/User.php | 64 ++++++-------------------------------- 5 files changed, 45 insertions(+), 127 deletions(-) delete mode 100644 app/Commands/Command.php mode change 100644 => 100755 app/Console/Kernel.php mode change 100644 => 100755 app/Events/Event.php mode change 100644 => 100755 app/Exceptions/Handler.php mode change 100644 => 100755 app/User.php diff --git a/app/Commands/Command.php b/app/Commands/Command.php deleted file mode 100644 index 1212b4e554..0000000000 --- a/app/Commands/Command.php +++ /dev/null @@ -1,12 +0,0 @@ -renderHttpException($e); - } else { - return parent::render($request, $e); - } - } + protected $dontReport = [ + AuthorizationException::class, + HttpException::class, + ModelNotFoundException::class, + ValidationException::class, + ]; /** * Report or log an exception. * * This is a great spot to send exceptions to Sentry, Bugsnag, etc. - * @SuppressWarnings(PHPMD.ShortVariable) - * - * @param \Exception $e * + * @param \Exception $e * @return void */ public function report(Exception $e) { - parent::report($e); + return parent::report($e); } + /** + * Render an exception into an HTTP response. + * + * @param \Illuminate\Http\Request $request + * @param \Exception $e + * @return \Illuminate\Http\Response + */ + public function render($request, Exception $e) + { + return parent::render($request, $e); + } } diff --git a/app/User.php b/app/User.php old mode 100644 new mode 100755 index d1924bbccc..606030315e --- a/app/User.php +++ b/app/User.php @@ -1,73 +1,27 @@ -