diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-12 17:55:01 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-05-20 22:18:06 +0200 |
commit | b70c6a128fe5d0053b7971881696eafce4cb7c26 (patch) | |
tree | 641ff76531803c207a92d86f47d46b6dd93ab6d3 /core/Service | |
parent | 2b0d82675f669f00ad90f2750b1832a60ec9f766 (diff) | |
download | nextcloud-server-b70c6a128fe5d0053b7971881696eafce4cb7c26.tar.gz nextcloud-server-b70c6a128fe5d0053b7971881696eafce4cb7c26.zip |
Update core to PHP 7.4 standard
- Typed properties
- Port to LoggerInterface
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/Service')
-rw-r--r-- | core/Service/LoginFlowV2Service.php | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/core/Service/LoginFlowV2Service.php b/core/Service/LoginFlowV2Service.php index 8710cab5cae..bafee462456 100644 --- a/core/Service/LoginFlowV2Service.php +++ b/core/Service/LoginFlowV2Service.php @@ -38,33 +38,25 @@ use OC\Core\Exception\LoginFlowV2NotFoundException; use OCP\AppFramework\Db\DoesNotExistException; use OCP\AppFramework\Utility\ITimeFactory; use OCP\IConfig; -use OCP\ILogger; use OCP\Security\ICrypto; use OCP\Security\ISecureRandom; +use Psr\Log\LoggerInterface; class LoginFlowV2Service { - - /** @var LoginFlowV2Mapper */ - private $mapper; - /** @var ISecureRandom */ - private $random; - /** @var ITimeFactory */ - private $time; - /** @var IConfig */ - private $config; - /** @var ICrypto */ - private $crypto; - /** @var ILogger */ - private $logger; - /** @var IProvider */ - private $tokenProvider; + 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, - ILogger $logger, + LoggerInterface $logger, IProvider $tokenProvider) { $this->mapper = $mapper; $this->random = $random; |