mirror of
https://github.com/flarum/core.git
synced 2025-07-21 08:41:17 +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
|
// All requests should first be piped through our global error handler
|
||||||
$debugMode = ! $app->isUpToDate() || $app->inDebugMode();
|
$debugMode = ! $app->isUpToDate() || $app->inDebugMode();
|
||||||
$errorDir = __DIR__.'/../../error';
|
$pipe->pipe($app->make(HandleErrors::class, ['debug' => $debugMode]));
|
||||||
$pipe->pipe(new HandleErrors($errorDir, $app->make('log'), $debugMode));
|
|
||||||
|
|
||||||
$pipe->pipe($app->make(ParseJsonBody::class));
|
$pipe->pipe($app->make(ParseJsonBody::class));
|
||||||
$pipe->pipe($app->make(StartSession::class));
|
$pipe->pipe($app->make(StartSession::class));
|
||||||
|
Reference in New Issue
Block a user