Updated auth controllers with property types
This commit is contained in:
parent
aec772c5eb
commit
7165481075
|
@ -14,9 +14,9 @@ use Illuminate\Http\Request;
|
||||||
|
|
||||||
class ConfirmEmailController extends Controller
|
class ConfirmEmailController extends Controller
|
||||||
{
|
{
|
||||||
protected $emailConfirmationService;
|
protected EmailConfirmationService $emailConfirmationService;
|
||||||
protected $loginService;
|
protected LoginService $loginService;
|
||||||
protected $userRepo;
|
protected UserRepo $userRepo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new controller instance.
|
* Create a new controller instance.
|
||||||
|
|
|
@ -31,8 +31,8 @@ class LoginController extends Controller
|
||||||
/**
|
/**
|
||||||
* Redirection paths.
|
* Redirection paths.
|
||||||
*/
|
*/
|
||||||
protected $redirectTo = '/';
|
protected string $redirectTo = '/';
|
||||||
protected $redirectPath = '/';
|
protected string $redirectPath = '/';
|
||||||
|
|
||||||
protected SocialAuthService $socialAuthService;
|
protected SocialAuthService $socialAuthService;
|
||||||
protected LoginService $loginService;
|
protected LoginService $loginService;
|
||||||
|
|
|
@ -35,11 +35,9 @@ class RegisterController extends Controller
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Where to redirect users after login / registration.
|
* Where to redirect users after login / registration.
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
*/
|
||||||
protected $redirectTo = '/';
|
protected string $redirectTo = '/';
|
||||||
protected $redirectPath = '/';
|
protected string $redirectPath = '/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new controller instance.
|
* Create a new controller instance.
|
||||||
|
|
|
@ -16,9 +16,9 @@ use Laravel\Socialite\Contracts\User as SocialUser;
|
||||||
|
|
||||||
class SocialController extends Controller
|
class SocialController extends Controller
|
||||||
{
|
{
|
||||||
protected $socialAuthService;
|
protected SocialAuthService $socialAuthService;
|
||||||
protected $registrationService;
|
protected RegistrationService $registrationService;
|
||||||
protected $loginService;
|
protected LoginService $loginService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SocialController constructor.
|
* SocialController constructor.
|
||||||
|
|
|
@ -15,8 +15,8 @@ use Illuminate\Validation\Rules\Password;
|
||||||
|
|
||||||
class UserInviteController extends Controller
|
class UserInviteController extends Controller
|
||||||
{
|
{
|
||||||
protected $inviteService;
|
protected UserInviteService $inviteService;
|
||||||
protected $userRepo;
|
protected UserRepo $userRepo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new controller instance.
|
* Create a new controller instance.
|
||||||
|
|
Loading…
Reference in New Issue