]> BookStack Code Mirror - bookstack/blobdiff - app/Theming/ThemeService.php
Extend /users API endpoint
[bookstack] / app / Theming / ThemeService.php
index cc68de1e17c6b3fc3ef6ba90c873f7bd4ec3d5e2..54e476ae2a896b65abaeafa2689406659affa1a1 100644 (file)
@@ -1,5 +1,7 @@
 <?php namespace BookStack\Theming;
 
+use BookStack\Auth\Access\SocialAuthService;
+
 class ThemeService
 {
     protected $listeners = [];
@@ -47,4 +49,13 @@ class ThemeService
             require $themeActionsFile;
         }
     }
+
+    /**
+     * @see SocialAuthService::addSocialDriver
+     */
+    public function addSocialDriver(string $driverName, array $config, string $socialiteHandler)
+    {
+        $socialAuthService = app()->make(SocialAuthService::class);
+        $socialAuthService->addSocialDriver($driverName, $config, $socialiteHandler);
+    }
 }
\ No newline at end of file