mirror of
https://github.com/flarum/core.git
synced 2025-07-19 07:41:22 +02:00
Make ExtensionManager a singleton
This commit is contained in:
@@ -21,7 +21,8 @@ class ExtensionServiceProvider extends AbstractServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
$this->app->bind('flarum.extensions', ExtensionManager::class);
|
$this->app->singleton(ExtensionManager::class);
|
||||||
|
$this->app->alias(ExtensionManager::class, 'flarum.extensions');
|
||||||
|
|
||||||
$this->app->booting(function (Container $app) {
|
$this->app->booting(function (Container $app) {
|
||||||
$app->make('flarum.extensions')->extend($app);
|
$app->make('flarum.extensions')->extend($app);
|
||||||
|
Reference in New Issue
Block a user