mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02:00
the admin service provider also has to use the new HandleError logic
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user