aboutsummaryrefslogtreecommitdiffstats
path: root/core/Service
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-23 23:03:56 +0330
committerFaraz Samapoor <fsa@adlas.at>2023-06-23 23:03:56 +0330
commite98cf3c37481ef92fbb2f50de16ea00d2958f3c3 (patch)
treecba89a58c0a9634e8d687a4d99a29b4158fa6aa8 /core/Service
parent877ddd28277e6bd263832209f4d22e713b4bdd87 (diff)
downloadnextcloud-server-e98cf3c37481ef92fbb2f50de16ea00d2958f3c3.tar.gz
nextcloud-server-e98cf3c37481ef92fbb2f50de16ea00d2958f3c3.zip
Uses PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'core/Service')
-rw-r--r--core/Service/LoginFlowV2Service.php31
1 files changed, 9 insertions, 22 deletions
diff --git a/core/Service/LoginFlowV2Service.php b/core/Service/LoginFlowV2Service.php
index bafee462456..7e254672ebd 100644
--- a/core/Service/LoginFlowV2Service.php
+++ b/core/Service/LoginFlowV2Service.php
@@ -43,28 +43,15 @@ use OCP\Security\ISecureRandom;
use Psr\Log\LoggerInterface;
class LoginFlowV2Service {
- private LoginFlowV2Mapper $mapper;
- private ISecureRandom $random;
- private ITimeFactory $time;
- private IConfig $config;
- private ICrypto $crypto;
- private LoggerInterface $logger;
- private IProvider $tokenProvider;
-
- public function __construct(LoginFlowV2Mapper $mapper,
- ISecureRandom $random,
- ITimeFactory $time,
- IConfig $config,
- ICrypto $crypto,
- LoggerInterface $logger,
- IProvider $tokenProvider) {
- $this->mapper = $mapper;
- $this->random = $random;
- $this->time = $time;
- $this->config = $config;
- $this->crypto = $crypto;
- $this->logger = $logger;
- $this->tokenProvider = $tokenProvider;
+ public function __construct(
+ private LoginFlowV2Mapper $mapper,
+ private ISecureRandom $random,
+ private ITimeFactory $time,
+ private IConfig $config,
+ private ICrypto $crypto,
+ private LoggerInterface $logger,
+ private IProvider $tokenProvider,
+ ) {
}
/**