aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/WebAuthnController.php
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-06-20 15:33:53 +0200
committerGitHub <noreply@github.com>2023-06-20 15:33:53 +0200
commit14ac281acf143606c54e59e3641c9d0d898e5f95 (patch)
tree6061ebee33453376ed236f21ad52d1b0d8fa390d /core/Controller/WebAuthnController.php
parentd9e9d4e123f5b74378b9ba2fa2082eca205f3526 (diff)
parent4ce7173f7ed22a25dd8149421ca778e47a3b3c46 (diff)
downloadnextcloud-server-14ac281acf143606c54e59e3641c9d0d898e5f95.tar.gz
nextcloud-server-14ac281acf143606c54e59e3641c9d0d898e5f95.zip
Merge pull request #38638 from fsamapoor/constructor_property_promotion_part3
[3/3] Refactors /core controllers using constructor property promotion.
Diffstat (limited to 'core/Controller/WebAuthnController.php')
-rw-r--r--core/Controller/WebAuthnController.php22
1 files changed, 9 insertions, 13 deletions
diff --git a/core/Controller/WebAuthnController.php b/core/Controller/WebAuthnController.php
index bd0726d2aa2..08a6b36d276 100644
--- a/core/Controller/WebAuthnController.php
+++ b/core/Controller/WebAuthnController.php
@@ -45,20 +45,16 @@ 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;
}
/**