1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Aligned constructors across controller classes

Since they no longer needed to run the parent contructor
since the parent constructor was no longer needed.
This commit is contained in:
Dan Brown
2020-11-21 17:08:37 +00:00
parent f76a2a69f7
commit 5e01c30882
32 changed files with 0 additions and 49 deletions

View File

@ -21,15 +21,11 @@ class ConfirmEmailController extends Controller
/**
* Create a new controller instance.
*
* @param EmailConfirmationService $emailConfirmationService
* @param UserRepo $userRepo
*/
public function __construct(EmailConfirmationService $emailConfirmationService, UserRepo $userRepo)
{
$this->emailConfirmationService = $emailConfirmationService;
$this->userRepo = $userRepo;
parent::__construct();
}

View File

@ -32,7 +32,6 @@ class ForgotPasswordController extends Controller
{
$this->middleware('guest');
$this->middleware('guard:standard');
parent::__construct();
}

View File

@ -46,7 +46,6 @@ class LoginController extends Controller
$this->socialAuthService = $socialAuthService;
$this->redirectPath = url('/');
$this->redirectAfterLogout = url('/login');
parent::__construct();
}
public function username()

View File

@ -51,7 +51,6 @@ class RegisterController extends Controller
$this->redirectTo = url('/');
$this->redirectPath = url('/');
parent::__construct();
}
/**

View File

@ -34,7 +34,6 @@ class ResetPasswordController extends Controller
{
$this->middleware('guest');
$this->middleware('guard:standard');
parent::__construct();
}
/**

View File

@ -15,7 +15,6 @@ class Saml2Controller extends Controller
*/
public function __construct(Saml2Service $samlService)
{
parent::__construct();
$this->samlService = $samlService;
$this->middleware('guard:saml2');
}

View File

@ -27,8 +27,6 @@ class UserInviteController extends Controller
$this->inviteService = $inviteService;
$this->userRepo = $userRepo;
parent::__construct();
}
/**