diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-22 21:56:00 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-11-23 16:20:00 +0100 |
commit | c832e6180bcefbd82748c8e240438d6c2e21b358 (patch) | |
tree | 6b22290c5f74bd53033b4d1957095d3e8bf2854e /apps/encryption/lib | |
parent | 032de4f333904dfb3dedb29935d43bfee6bfe0d8 (diff) | |
download | nextcloud-server-c832e6180bcefbd82748c8e240438d6c2e21b358.tar.gz nextcloud-server-c832e6180bcefbd82748c8e240438d6c2e21b358.zip |
Remove unused dependencies in encryption app setup
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r-- | apps/encryption/lib/Users/Setup.php | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/apps/encryption/lib/Users/Setup.php b/apps/encryption/lib/Users/Setup.php index 2c4dd1fc63d..f68e06a3de0 100644 --- a/apps/encryption/lib/Users/Setup.php +++ b/apps/encryption/lib/Users/Setup.php @@ -29,40 +29,15 @@ namespace OCA\Encryption\Users; use OCA\Encryption\Crypto\Crypt; use OCA\Encryption\KeyManager; -use OCP\ILogger; -use OCP\IUserSession; class Setup { - /** - * @var Crypt - */ + /** @var Crypt */ private $crypt; - /** - * @var KeyManager - */ + /** @var KeyManager */ private $keyManager; - /** - * @var ILogger - */ - private $logger; - /** - * @var bool|string - */ - private $user; - - /** - * @param ILogger $logger - * @param IUserSession $userSession - * @param Crypt $crypt - * @param KeyManager $keyManager - */ - public function __construct(ILogger $logger, - IUserSession $userSession, - Crypt $crypt, + public function __construct(Crypt $crypt, KeyManager $keyManager) { - $this->logger = $logger; - $this->user = $userSession && $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false; $this->crypt = $crypt; $this->keyManager = $keyManager; } |