BookStack\Http\Controllers\Auth\RegisterController::__construct PHP Method

__construct() public method

Create a new controller instance.
public __construct ( SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo )
$socialAuthService BookStack\Services\SocialAuthService
$emailConfirmationService BookStack\Services\EmailConfirmationService
$userRepo BookStack\Repos\UserRepo
    public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo)
    {
        $this->middleware('guest')->except(['socialCallback', 'detachSocialAccount']);
        $this->socialAuthService = $socialAuthService;
        $this->emailConfirmationService = $emailConfirmationService;
        $this->userRepo = $userRepo;
        $this->redirectTo = baseUrl('/');
        $this->redirectPath = baseUrl('/');
        parent::__construct();
    }