share -> singleton
This commit is contained in:
parent
84597b95ce
commit
6136e89a54
|
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue