diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-11-27 18:19:14 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-08 22:29:43 +0100 |
commit | a9e411e076ddbb5525ad44db4cad9efe2efd0fd2 (patch) | |
tree | 9cf256b1bc48a8fd93f4b78d5dde45012971f3ae /lib/private/user | |
parent | 719008836d5254c6fa3975c5044d1c6a811bc124 (diff) | |
download | nextcloud-server-a9e411e076ddbb5525ad44db4cad9efe2efd0fd2.tar.gz nextcloud-server-a9e411e076ddbb5525ad44db4cad9efe2efd0fd2.zip |
migrate \OC\AllConfig to \OCP\IConfig
Diffstat (limited to 'lib/private/user')
-rw-r--r-- | lib/private/user/manager.php | 7 | ||||
-rw-r--r-- | lib/private/user/user.php | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lib/private/user/manager.php b/lib/private/user/manager.php index 2403f45aa2f..4fa3711e3b8 100644 --- a/lib/private/user/manager.php +++ b/lib/private/user/manager.php @@ -11,6 +11,7 @@ namespace OC\User; use OC\Hooks\PublicEmitter; use OCP\IUserManager; +use OCP\IConfig; /** * Class Manager @@ -37,14 +38,14 @@ class Manager extends PublicEmitter implements IUserManager { private $cachedUsers = array(); /** - * @var \OC\AllConfig $config + * @var \OCP\IConfig $config */ private $config; /** - * @param \OC\AllConfig $config + * @param \OCP\IConfig $config */ - public function __construct($config = null) { + public function __construct(IConfig $config = null) { $this->config = $config; $cachedUsers = &$this->cachedUsers; $this->listen('\OC\User', 'postDelete', function ($user) use (&$cachedUsers) { diff --git a/lib/private/user/user.php b/lib/private/user/user.php index ad85337f628..fb66f893c61 100644 --- a/lib/private/user/user.php +++ b/lib/private/user/user.php @@ -11,6 +11,7 @@ namespace OC\User; use OC\Hooks\Emitter; use OCP\IUser; +use OCP\IConfig; class User implements IUser { /** @@ -49,7 +50,7 @@ class User implements IUser { private $lastLogin; /** - * @var \OC\AllConfig $config + * @var \OCP\IConfig $config */ private $config; @@ -57,9 +58,9 @@ class User implements IUser { * @param string $uid * @param \OC_User_Interface $backend * @param \OC\Hooks\Emitter $emitter - * @param \OC\AllConfig $config + * @param \OCP\IConfig $config */ - public function __construct($uid, $backend, $emitter = null, $config = null) { + public function __construct($uid, $backend, $emitter = null, IConfig $config = null) { $this->uid = $uid; $this->backend = $backend; $this->emitter = $emitter; |