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:
@@ -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)
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user