mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 15:03:44 +08:00
the admin service provider also has to use the new HandleError logic
This commit is contained in:
parent
033961844d
commit
29ab5b83b1
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user