aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-07-11 22:43:47 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-08-31 23:03:16 +0200
commitefedc81c0a2f1539806854f8a73c40fc61b1e13e (patch)
treede116f0aabb11550b8c9d789f45ba581e9d59461 /apps/user_ldap/lib/User
parent84ea66dca8593a967d0114a7d0206260263f61f9 (diff)
downloadnextcloud-server-efedc81c0a2f1539806854f8a73c40fc61b1e13e.tar.gz
nextcloud-server-efedc81c0a2f1539806854f8a73c40fc61b1e13e.zip
simplify returning the homePath and fixing #4117
homesToKill was not set in runtime since some changes some place else. It required deleteUser() to be called first. The method acts independent of it now. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/User')
-rw-r--r--apps/user_ldap/lib/User/OfflineUser.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/user_ldap/lib/User/OfflineUser.php b/apps/user_ldap/lib/User/OfflineUser.php
index 0e60a29514e..942eee84cb7 100644
--- a/apps/user_ldap/lib/User/OfflineUser.php
+++ b/apps/user_ldap/lib/User/OfflineUser.php
@@ -25,6 +25,8 @@
namespace OCA\User_LDAP\User;
use OCA\User_LDAP\Mapping\UserMapping;
+use OCP\IConfig;
+use OCP\IDBConnection;
class OfflineUser {
/**
@@ -60,11 +62,11 @@ class OfflineUser {
*/
protected $hasActiveShares;
/**
- * @var \OCP\IConfig $config
+ * @var IConfig $config
*/
protected $config;
/**
- * @var \OCP\IDBConnection $db
+ * @var IDBConnection $db
*/
protected $db;
/**
@@ -74,11 +76,11 @@ class OfflineUser {
/**
* @param string $ocName
- * @param \OCP\IConfig $config
- * @param \OCP\IDBConnection $db
+ * @param IConfig $config
+ * @param IDBConnection $db
* @param \OCA\User_LDAP\Mapping\UserMapping $mapping
*/
- public function __construct($ocName, \OCP\IConfig $config, \OCP\IDBConnection $db, UserMapping $mapping) {
+ public function __construct($ocName, IConfig $config, IDBConnection $db, UserMapping $mapping) {
$this->ocName = $ocName;
$this->config = $config;
$this->db = $db;