mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
the admin service provider also has to use the new HandleError logic
This commit is contained in:
parent
183a22b5c5
commit
1b94ef90ea
@ -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…
x
Reference in New Issue
Block a user