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