1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 16:05:05 +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

@@ -59,7 +59,7 @@ class ApiServiceProvider extends AbstractServiceProvider
$this->app->bind('flarum.api.error_handler', function () {
return new HttpMiddleware\HandleErrors(
$this->app->make(Registry::class),
new JsonApiFormatter($this->app['flarum']->inDebugMode()),
new JsonApiFormatter($this->app['flarum.config']->inDebugMode()),
$this->app->tagged(Reporter::class)
);
});