diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-04 23:30:58 +0330 |
---|---|---|
committer | Louis <6653109+artonge@users.noreply.github.com> | 2023-06-20 10:38:46 +0200 |
commit | 9eedeb401211c7210228b2c87674066d862d0329 (patch) | |
tree | 5f8dc4bc12db3af2c3b2cc27246d9a26e2ea7065 /core/Controller/WebAuthnController.php | |
parent | 5063bf37ed3e68041adb9a96f430a87d59106491 (diff) | |
download | nextcloud-server-9eedeb401211c7210228b2c87674066d862d0329.tar.gz nextcloud-server-9eedeb401211c7210228b2c87674066d862d0329.zip |
Refactors controllers by using PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'core/Controller/WebAuthnController.php')
-rw-r--r-- | core/Controller/WebAuthnController.php | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/core/Controller/WebAuthnController.php b/core/Controller/WebAuthnController.php index bd0726d2aa2..d4ee5637598 100644 --- a/core/Controller/WebAuthnController.php +++ b/core/Controller/WebAuthnController.php @@ -45,20 +45,14 @@ class WebAuthnController extends Controller { private const WEBAUTHN_LOGIN = 'webauthn_login'; private const WEBAUTHN_LOGIN_UID = 'webauthn_login_uid'; - private Manager $webAuthnManger; - private ISession $session; - private LoggerInterface $logger; - private WebAuthnChain $webAuthnChain; - private UrlGenerator $urlGenerator; - - public function __construct($appName, IRequest $request, Manager $webAuthnManger, ISession $session, LoggerInterface $logger, WebAuthnChain $webAuthnChain, URLGenerator $urlGenerator) { + public function __construct(string $appName, + IRequest $request, + private Manager $webAuthnManger, + private ISession $session, + private LoggerInterface $logger, + private WebAuthnChain $webAuthnChain, + private URLGenerator $urlGenerator) { parent::__construct($appName, $request); - - $this->webAuthnManger = $webAuthnManger; - $this->session = $session; - $this->logger = $logger; - $this->webAuthnChain = $webAuthnChain; - $this->urlGenerator = $urlGenerator; } /** |