]> BookStack Code Mirror - bookstack/blobdiff - app/Providers/CustomFacadeProvider.php
Skip intermediate login page with single provider
[bookstack] / app / Providers / CustomFacadeProvider.php
index e7bde5290490fc5d1fc06bf01c0c91c6de2afb55..0518af44f9bf6e4f55d4ae311a30313aa7b8f1db 100644 (file)
@@ -2,9 +2,9 @@
 
 namespace BookStack\Providers;
 
-use BookStack\Actions\ActivityService;
-use BookStack\Actions\ViewService;
-use BookStack\Settings\SettingService;
+use BookStack\Actions\ActivityLogger;
+use BookStack\Auth\Permissions\PermissionService;
+use BookStack\Theming\ThemeService;
 use BookStack\Uploads\ImageService;
 use Illuminate\Support\ServiceProvider;
 
@@ -27,20 +27,20 @@ class CustomFacadeProvider extends ServiceProvider
      */
     public function register()
     {
-        $this->app->bind('activity', function () {
-            return $this->app->make(ActivityService::class);
+        $this->app->singleton('activity', function () {
+            return $this->app->make(ActivityLogger::class);
         });
 
-        $this->app->bind('views', function () {
-            return $this->app->make(ViewService::class);
+        $this->app->singleton('images', function () {
+            return $this->app->make(ImageService::class);
         });
 
-        $this->app->bind('setting', function () {
-            return $this->app->make(SettingService::class);
+        $this->app->singleton('permissions', function () {
+            return $this->app->make(PermissionService::class);
         });
 
-        $this->app->bind('images', function () {
-            return $this->app->make(ImageService::class);
+        $this->app->singleton('theme', function () {
+            return $this->app->make(ThemeService::class);
         });
     }
 }