aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/LoginController.php
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-04 23:46:27 +0330
committerLouis <6653109+artonge@users.noreply.github.com>2023-06-16 19:29:40 +0200
commit4bf610ebaf52447a678e83d40a98463969e6fd51 (patch)
tree93f2cab7e491ac9f2071e69aa8754b4ab9243ca1 /core/Controller/LoginController.php
parentd820ab2ca8342d756ec8e0554e180e7f00cc3860 (diff)
downloadnextcloud-server-4bf610ebaf52447a678e83d40a98463969e6fd51.tar.gz
nextcloud-server-4bf610ebaf52447a678e83d40a98463969e6fd51.zip
Refactors controllers by using PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'core/Controller/LoginController.php')
-rw-r--r--core/Controller/LoginController.php46
1 files changed, 11 insertions, 35 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index 9c64204b898..4c3d07c6cf2 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -63,44 +63,20 @@ class LoginController extends Controller {
public const LOGIN_MSG_INVALIDPASSWORD = 'invalidpassword';
public const LOGIN_MSG_USERDISABLED = 'userdisabled';
- private IUserManager $userManager;
- private IConfig $config;
- private ISession $session;
- /** @var Session */
- private $userSession;
- private IURLGenerator $urlGenerator;
- private Defaults $defaults;
- private Throttler $throttler;
- private IInitialStateService $initialStateService;
- private WebAuthnManager $webAuthnManager;
- private IManager $manager;
- private IL10N $l10n;
-
public function __construct(?string $appName,
IRequest $request,
- IUserManager $userManager,
- IConfig $config,
- ISession $session,
- IUserSession $userSession,
- IURLGenerator $urlGenerator,
- Defaults $defaults,
- Throttler $throttler,
- IInitialStateService $initialStateService,
- WebAuthnManager $webAuthnManager,
- IManager $manager,
- IL10N $l10n) {
+ private IUserManager $userManager,
+ private IConfig $config,
+ private ISession $session,
+ private IUserSession $userSession,
+ private IURLGenerator $urlGenerator,
+ private Defaults $defaults,
+ private Throttler $throttler,
+ private IInitialStateService $initialStateService,
+ private WebAuthnManager $webAuthnManager,
+ private IManager $manager,
+ private IL10N $l10n) {
parent::__construct($appName, $request);
- $this->userManager = $userManager;
- $this->config = $config;
- $this->session = $session;
- $this->userSession = $userSession;
- $this->urlGenerator = $urlGenerator;
- $this->defaults = $defaults;
- $this->throttler = $throttler;
- $this->initialStateService = $initialStateService;
- $this->webAuthnManager = $webAuthnManager;
- $this->manager = $manager;
- $this->l10n = $l10n;
}
/**