Rename alias() to singleton()

parent 86ce4015
...@@ -21,7 +21,7 @@ class ImageServiceProvider extends ServiceProvider ...@@ -21,7 +21,7 @@ class ImageServiceProvider extends ServiceProvider
return new ThumbnailManagerRepository(); return new ThumbnailManagerRepository();
}); });
$this->app['imagy'] = $this->app->share(function ($app) { $this->app->singleton('imagy', function ($app) {
$factory = new InterventionFactory(); $factory = new InterventionFactory();
return new Imagy($factory, $app[ThumbnailManager::class], $app['config']); return new Imagy($factory, $app[ThumbnailManager::class], $app['config']);
......
...@@ -32,7 +32,7 @@ class SettingServiceProvider extends ServiceProvider ...@@ -32,7 +32,7 @@ class SettingServiceProvider extends ServiceProvider
{ {
$this->registerBindings(); $this->registerBindings();
$this->app['setting.settings'] = $this->app->share(function ($app) { $this->app->singleton('setting.settings', function ($app) {
return new Settings($app[SettingRepository::class]); return new Settings($app[SettingRepository::class]);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment