From a7e6a89c91e4aec554e5a6dfdc609c529d9c0532 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 18 Nov 2014 22:48:38 -0600 Subject: [PATCH] Add scheduled commands. --- app/Console/Kernel.php | 24 +++++++----------------- app/Exceptions/Handler.php | 31 +++++++++++++++++++++++++++++++ app/Http/Kernel.php | 20 -------------------- bootstrap/app.php | 2 +- 4 files changed, 39 insertions(+), 38 deletions(-) create mode 100644 app/Exceptions/Handler.php diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 000510a5..e5cdc935 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -1,6 +1,7 @@ reportException($e); - - $this->renderException($output, $e); - - return 1; - } + $schedule->artisan('foo') + ->hourly(); } } diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php new file mode 100644 index 00000000..70400df1 --- /dev/null +++ b/app/Exceptions/Handler.php @@ -0,0 +1,31 @@ +reportException($e); - - return $this->renderException($request, $e); - } - } - } diff --git a/bootstrap/app.php b/bootstrap/app.php index b7eec51f..b187f0cf 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -38,7 +38,7 @@ $app->singleton( 'Illuminate\Contracts\Debug\ExceptionHandler', - 'Illuminate\Foundation\Debug\ExceptionHandler' + 'App\Exceptions\ExceptionHandler' ); /*