diff options
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; } |