From e96943fe6ff35d9aed605b22c44467b4407529ae Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 5 Jan 2017 09:58:45 +0100 Subject: [PATCH] Use singleton instead of share --- src/IdeHelperServiceProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IdeHelperServiceProvider.php b/src/IdeHelperServiceProvider.php index d8285d6..a2ac480 100644 --- a/src/IdeHelperServiceProvider.php +++ b/src/IdeHelperServiceProvider.php @@ -54,19 +54,19 @@ class IdeHelperServiceProvider extends ServiceProvider $configPath = __DIR__ . '/../config/ide-helper.php'; $this->mergeConfigFrom($configPath, 'ide-helper'); - $this->app['command.ide-helper.generate'] = $this->app->share( + $this->app->singleton('command.ide-helper.generate', function ($app) { return new GeneratorCommand($app['config'], $app['files'], $app['view']); } ); - $this->app['command.ide-helper.models'] = $this->app->share( + $this->app->singleton('command.ide-helper.models', function ($app) { return new ModelsCommand($app['files']); } ); - $this->app['command.ide-helper.meta'] = $this->app->share( + $this->app->singleton('command.ide-helper.meta', function ($app) { return new MetaCommand($app['files'], $app['view']); }