mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 12:26:44 +08:00
Don't use invokables with Container::call()
This commit is contained in:
parent
0af97c427c
commit
30a04e7bf9
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user