Fixes Custom Exception Handler for L5

This commit is contained in:
Samuel Georges 2015-02-07 16:14:26 +11:00
parent 9dba058fe5
commit 68909f1bfe
3 changed files with 13 additions and 6 deletions

View File

@ -35,6 +35,14 @@ Optional things you can delete, if they do not contain anything custom.
### Breaking code changes ### Breaking code changes
#### Removed PATH_* constants
PATH_APP - use app_path()
PATH_BASE - use base_path()
PATH_PUBLIC - use public_path()
PATH_STORAGE - use storage_path()
PATH_PLUGINS - use plugins_path()
#### Paginator / setCurrentPage #### Paginator / setCurrentPage
**App::make('paginator')->setCurrentPage(5);** should no longer be used, instead pass as the second argument with the `paginate()` method `$model->paginate(25, 5);` **App::make('paginator')->setCurrentPage(5);** should no longer be used, instead pass as the second argument with the `paginate()` method `$model->paginate(25, 5);`
@ -60,7 +68,6 @@ The following methods have changed:
### Things to do ### Things to do
- Custom Exception Handler needs attention
- Fix unit tests - Fix unit tests
- Dispatcher now native? - Dispatcher now native?
- Cron queue type now native? - Cron queue type now native?

View File

@ -38,7 +38,7 @@ $app->singleton(
$app->singleton( $app->singleton(
'Illuminate\Contracts\Debug\ExceptionHandler', 'Illuminate\Contracts\Debug\ExceptionHandler',
'October\Rain\Foundation\Exceptions\Handler' 'October\Rain\Foundation\Exception\Handler'
); );
/* /*

View File

@ -75,10 +75,10 @@ class ServiceProvider extends ModuleServiceProvider
/* /*
* Error handling for uncaught Exceptions * Error handling for uncaught Exceptions
*/ */
// App::error(function (\Exception $exception, $httpCode) { Event::listen('exception.beforeRender', function ($exception, $httpCode, $request){
// $handler = new ErrorHandler; $handler = new ErrorHandler;
// return $handler->handleException($exception, $httpCode); return $handler->handleException($exception, $httpCode);
// }); });
/* /*
* Write all log events to the database * Write all log events to the database