the admin service provider also has to use the new HandleError logic

This commit is contained in:
Daniel Klabbers 2017-12-15 09:35:02 +01:00
parent 033961844d
commit 29ab5b83b1

View File

@ -51,8 +51,7 @@ class AdminServiceProvider extends AbstractServiceProvider
// All requests should first be piped through our global error handler
$debugMode = ! $app->isUpToDate() || $app->inDebugMode();
$errorDir = __DIR__.'/../../error';
$pipe->pipe(new HandleErrors($errorDir, $app->make('log'), $debugMode));
$pipe->pipe($app->make(HandleErrors::class, ['debug' => $debugMode]));
$pipe->pipe($app->make(ParseJsonBody::class));
$pipe->pipe($app->make(StartSession::class));