1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2026-01-03 23:42:28 +03:00

Added the possibility of social provider extension via theme

Also started docs page
This commit is contained in:
Dan Brown
2021-03-19 16:16:26 +00:00
parent 9d37af9453
commit 2ae89f2c32
6 changed files with 95 additions and 17 deletions

View 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);
}
}