1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 15:34:26 +02:00

Inject/use new config class where applicable

This commit is contained in:
Franz Liedke
2020-03-28 11:03:19 +01:00
parent f869999011
commit 6639678fb2
10 changed files with 47 additions and 52 deletions

View File

@@ -63,7 +63,7 @@ class AdminServiceProvider extends AbstractServiceProvider
$this->app->bind('flarum.admin.error_handler', function () {
return new HttpMiddleware\HandleErrors(
$this->app->make(Registry::class),
$this->app['flarum']->inDebugMode() ? $this->app->make(WhoopsFormatter::class) : $this->app->make(ViewFormatter::class),
$this->app['flarum.config']->inDebugMode() ? $this->app->make(WhoopsFormatter::class) : $this->app->make(ViewFormatter::class),
$this->app->tagged(Reporter::class)
);
});