Don't use invokables with Container::call()

This commit is contained in:
Franz Liedke 2018-01-10 19:37:18 +01:00
parent 0af97c427c
commit 30a04e7bf9
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -24,11 +24,10 @@ class ExtensionServiceProvider extends AbstractServiceProvider
$this->app->bind('flarum.extensions', ExtensionManager::class);
$this->app->booting(function (Container $app) {
/** @var callable[] $extenders */
$extenders = $app->make('flarum.extensions')->getActiveExtenders();
foreach ($extenders as $extender) {
$app->call($extender);
$extender($app);
}
});
}