use BookStack\Access\LoginService;
use BookStack\Access\RegistrationService;
-use BookStack\Access\SocialAuthService;
+use BookStack\Access\SocialDriverManager;
use BookStack\Exceptions\StoppedAuthenticationException;
use BookStack\Exceptions\UserRegistrationException;
use BookStack\Http\Controller;
class RegisterController extends Controller
{
- protected SocialAuthService $socialAuthService;
+ protected SocialDriverManager $socialDriverManager;
protected RegistrationService $registrationService;
protected LoginService $loginService;
* Create a new controller instance.
*/
public function __construct(
- SocialAuthService $socialAuthService,
+ SocialDriverManager $socialDriverManager,
RegistrationService $registrationService,
LoginService $loginService
) {
$this->middleware('guest');
$this->middleware('guard:standard');
- $this->socialAuthService = $socialAuthService;
+ $this->socialDriverManager = $socialDriverManager;
$this->registrationService = $registrationService;
$this->loginService = $loginService;
}
public function getRegister()
{
$this->registrationService->ensureRegistrationAllowed();
- $socialDrivers = $this->socialAuthService->getActiveDrivers();
+ $socialDrivers = $this->socialDriverManager->getActive();
return view('auth.register', [
'socialDrivers' => $socialDrivers,