diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-23 20:43:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 20:43:42 +0100 |
commit | dc5f17f561823851d79b4f7aa6e8bc94050adc3b (patch) | |
tree | a5a3ad48c5ecda79742bc8842e97cec480ac441c /apps/encryption/lib | |
parent | d9e0efbf72e1f57abfbfffd3e547ba171e867d78 (diff) | |
parent | c832e6180bcefbd82748c8e240438d6c2e21b358 (diff) | |
download | nextcloud-server-dc5f17f561823851d79b4f7aa6e8bc94050adc3b.tar.gz nextcloud-server-dc5f17f561823851d79b4f7aa6e8bc94050adc3b.zip |
Merge pull request #24288 from nextcloud/techdebt/noid/encryption-setup-dependency-cleanup
Remove unused dependencies in encryption app setup
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; } |