diff options
author | Clark Tomlinson <fallen013@gmail.com> | 2015-03-31 14:50:58 -0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-04-07 13:30:29 +0200 |
commit | 505e0eaf6168f6131951bcde7d4f75db9dcf48b7 (patch) | |
tree | e8d4e3d65f2004a4d6ad27cf6dc4bf169cf99a41 /apps/encryption/lib | |
parent | 1fb29ec546105857b1a20cbaac700dbcb6f79b1d (diff) | |
download | nextcloud-server-505e0eaf6168f6131951bcde7d4f75db9dcf48b7.tar.gz nextcloud-server-505e0eaf6168f6131951bcde7d4f75db9dcf48b7.zip |
remove useless setup base class
Diffstat (limited to 'apps/encryption/lib')
-rw-r--r-- | apps/encryption/lib/setup.php | 38 | ||||
-rw-r--r-- | apps/encryption/lib/users/setup.php | 13 |
2 files changed, 11 insertions, 40 deletions
diff --git a/apps/encryption/lib/setup.php b/apps/encryption/lib/setup.php deleted file mode 100644 index cc8f00f0a40..00000000000 --- a/apps/encryption/lib/setup.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -/** - * @author Clark Tomlinson <fallen013@gmail.com> - * @since 3/6/15, 11:30 AM - * @link http:/www.clarkt.com - * @copyright Clark Tomlinson © 2015 - * - */ - -namespace OCA\Encryption; - - -use OCP\ILogger; -use OCP\IUser; -use OCP\IUserSession; - -class Setup { - /** - * @var ILogger - */ - protected $logger; - /** - * @var IUser - */ - protected $user; - - /** - * Setup constructor. - * - * @param ILogger $logger - * @param IUserSession $userSession - */ - public function __construct(ILogger $logger, IUserSession $userSession) { - $this->logger = $logger; - $this->user = $userSession && $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false; - - } -} diff --git a/apps/encryption/lib/users/setup.php b/apps/encryption/lib/users/setup.php index bf415c81888..e80bf6003e6 100644 --- a/apps/encryption/lib/users/setup.php +++ b/apps/encryption/lib/users/setup.php @@ -15,7 +15,7 @@ use OCA\Encryption\KeyManager; use OCP\ILogger; use OCP\IUserSession; -class Setup extends \OCA\Encryption\Setup { +class Setup { /** * @var Crypt */ @@ -24,6 +24,14 @@ class Setup extends \OCA\Encryption\Setup { * @var KeyManager */ private $keyManager; + /** + * @var ILogger + */ + private $logger; + /** + * @var bool|string + */ + private $user; /** @@ -33,7 +41,8 @@ class Setup extends \OCA\Encryption\Setup { * @param KeyManager $keyManager */ public function __construct(ILogger $logger, IUserSession $userSession, Crypt $crypt, KeyManager $keyManager) { - parent::__construct($logger, $userSession); + $this->logger = $logger; + $this->user = $userSession && $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false; $this->crypt = $crypt; $this->keyManager = $keyManager; } |