summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Migration
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-13 17:22:19 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-07-13 17:22:19 +0200
commit3203286f52fcca102e8458c9ca0df4b500d1d348 (patch)
treef2317f72d0e47f4fc48c8bd7b7c3c61c54a460c4 /apps/user_ldap/lib/Migration
parent2c87ce60a04eb98533d430ef7abe386ef0d04c2a (diff)
downloadnextcloud-server-3203286f52fcca102e8458c9ca0df4b500d1d348.tar.gz
nextcloud-server-3203286f52fcca102e8458c9ca0df4b500d1d348.zip
Do not use custom DI object names for user_ldap
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/user_ldap/lib/Migration')
-rw-r--r--apps/user_ldap/lib/Migration/UUIDFixGroup.php3
-rw-r--r--apps/user_ldap/lib/Migration/UUIDFixUser.php3
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Migration/UUIDFixGroup.php b/apps/user_ldap/lib/Migration/UUIDFixGroup.php
index 8a6ac1caee0..f90908adf0d 100644
--- a/apps/user_ldap/lib/Migration/UUIDFixGroup.php
+++ b/apps/user_ldap/lib/Migration/UUIDFixGroup.php
@@ -29,6 +29,7 @@ use OCA\User_LDAP\Helper;
use OCA\User_LDAP\LDAP;
use OCA\User_LDAP\Mapping\GroupMapping;
use OCA\User_LDAP\User_Proxy;
+use OCA\User_LDAP\UserPluginManager;
use OCP\IConfig;
class UUIDFixGroup extends UUIDFix {
@@ -36,6 +37,6 @@ class UUIDFixGroup extends UUIDFix {
$this->mapper = $mapper;
$this->proxy = new User_Proxy($helper->getServerConfigurationPrefixes(true), $ldap, $config,
\OC::$server->getNotificationManager(), \OC::$server->getUserSession(),
- \OC::$server->query('LDAPUserPluginManager'));
+ \OC::$server->query(UserPluginManager::class));
}
}
diff --git a/apps/user_ldap/lib/Migration/UUIDFixUser.php b/apps/user_ldap/lib/Migration/UUIDFixUser.php
index c53f566f64e..c62e4c53e50 100644
--- a/apps/user_ldap/lib/Migration/UUIDFixUser.php
+++ b/apps/user_ldap/lib/Migration/UUIDFixUser.php
@@ -26,6 +26,7 @@
namespace OCA\User_LDAP\Migration;
use OCA\User_LDAP\Group_Proxy;
+use OCA\User_LDAP\GroupPluginManager;
use OCA\User_LDAP\Helper;
use OCA\User_LDAP\LDAP;
use OCA\User_LDAP\Mapping\UserMapping;
@@ -34,7 +35,7 @@ use OCP\IConfig;
class UUIDFixUser extends UUIDFix {
public function __construct(UserMapping $mapper, LDAP $ldap, IConfig $config, Helper $helper) {
$this->mapper = $mapper;
- $groupPluginManager = \OC::$server->query('LDAPGroupPluginManager');
+ $groupPluginManager = \OC::$server->query(GroupPluginManager::class);
$this->proxy = new Group_Proxy($helper->getServerConfigurationPrefixes(true), $ldap, $groupPluginManager);
}
}