mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
Don't use invokables with Container::call()
This commit is contained in:
parent
73662598ef
commit
c07ed29057
|
@ -24,11 +24,10 @@ class ExtensionServiceProvider extends AbstractServiceProvider
|
||||||
$this->app->bind('flarum.extensions', ExtensionManager::class);
|
$this->app->bind('flarum.extensions', ExtensionManager::class);
|
||||||
|
|
||||||
$this->app->booting(function (Container $app) {
|
$this->app->booting(function (Container $app) {
|
||||||
/** @var callable[] $extenders */
|
|
||||||
$extenders = $app->make('flarum.extensions')->getActiveExtenders();
|
$extenders = $app->make('flarum.extensions')->getActiveExtenders();
|
||||||
|
|
||||||
foreach ($extenders as $extender) {
|
foreach ($extenders as $extender) {
|
||||||
$app->call($extender);
|
$extender($app);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user