X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/b61c1d8df0171deb4198f81c7227bed728cb0c3f..refs/pull/3406/head:/app/Providers/CustomFacadeProvider.php diff --git a/app/Providers/CustomFacadeProvider.php b/app/Providers/CustomFacadeProvider.php index f5dd37424..0518af44f 100644 --- a/app/Providers/CustomFacadeProvider.php +++ b/app/Providers/CustomFacadeProvider.php @@ -1,10 +1,12 @@ app->bind('activity', function() { - return new ActivityService($this->app->make('Oxbow\Activity')); + $this->app->singleton('activity', function () { + return $this->app->make(ActivityLogger::class); }); - $this->app->bind('setting', function() { - return new SettingService( - $this->app->make('Oxbow\Setting'), - $this->app->make('Illuminate\Contracts\Cache\Repository') - ); + $this->app->singleton('images', function () { + return $this->app->make(ImageService::class); + }); + + $this->app->singleton('permissions', function () { + return $this->app->make(PermissionService::class); + }); + + $this->app->singleton('theme', function () { + return $this->app->make(ThemeService::class); }); } }