From 6136e89a544e23039def74b156731ce72096183a Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 20 May 2017 00:31:50 +1000 Subject: [PATCH] share -> singleton --- modules/system/classes/PluginBase.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; });