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

This commit is contained in:
Franz Liedke 2018-01-10 19:37:18 +01:00
parent 73662598ef
commit c07ed29057

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);
}
});
}