Updated auth controllers with property types

This commit is contained in:
Dan Brown 2022-09-22 15:12:05 +01:00
parent aec772c5eb
commit 7165481075
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
5 changed files with 12 additions and 14 deletions

View File

@ -14,9 +14,9 @@ use Illuminate\Http\Request;
class ConfirmEmailController extends Controller
{
protected $emailConfirmationService;
protected $loginService;
protected $userRepo;
protected EmailConfirmationService $emailConfirmationService;
protected LoginService $loginService;
protected UserRepo $userRepo;
/**
* Create a new controller instance.

View File

@ -31,8 +31,8 @@ class LoginController extends Controller
/**
* Redirection paths.
*/
protected $redirectTo = '/';
protected $redirectPath = '/';
protected string $redirectTo = '/';
protected string $redirectPath = '/';
protected SocialAuthService $socialAuthService;
protected LoginService $loginService;

View File

@ -35,11 +35,9 @@ class RegisterController extends Controller
/**
* Where to redirect users after login / registration.
*
* @var string
*/
protected $redirectTo = '/';
protected $redirectPath = '/';
protected string $redirectTo = '/';
protected string $redirectPath = '/';
/**
* Create a new controller instance.

View File

@ -16,9 +16,9 @@ use Laravel\Socialite\Contracts\User as SocialUser;
class SocialController extends Controller
{
protected $socialAuthService;
protected $registrationService;
protected $loginService;
protected SocialAuthService $socialAuthService;
protected RegistrationService $registrationService;
protected LoginService $loginService;
/**
* SocialController constructor.

View File

@ -15,8 +15,8 @@ use Illuminate\Validation\Rules\Password;
class UserInviteController extends Controller
{
protected $inviteService;
protected $userRepo;
protected UserInviteService $inviteService;
protected UserRepo $userRepo;
/**
* Create a new controller instance.