diff --git a/modules/system/classes/PluginBase.php b/modules/system/classes/PluginBase.php index 8dbac748d..613ef5c97 100644 --- a/modules/system/classes/PluginBase.php +++ b/modules/system/classes/PluginBase.php @@ -218,7 +218,8 @@ class PluginBase extends ServiceProviderBase public function registerConsoleCommand($key, $class) { $key = 'command.'.$key; - $this->app[$key] = $this->app->share(function ($app) use ($class) { + + $this->app->singleton($key, function ($app) use ($class) { return new $class; });