X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/5d9d09602842bf98f56d274b720d5090f2e8acf0..refs/pull/3406/head:/app/Providers/CustomFacadeProvider.php diff --git a/app/Providers/CustomFacadeProvider.php b/app/Providers/CustomFacadeProvider.php index bb4520c18..0518af44f 100644 --- a/app/Providers/CustomFacadeProvider.php +++ b/app/Providers/CustomFacadeProvider.php @@ -1,9 +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->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); }); } }