diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-13 17:22:19 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-13 17:22:19 +0200 |
commit | 3203286f52fcca102e8458c9ca0df4b500d1d348 (patch) | |
tree | f2317f72d0e47f4fc48c8bd7b7c3c61c54a460c4 /apps/user_ldap/lib/Jobs | |
parent | 2c87ce60a04eb98533d430ef7abe386ef0d04c2a (diff) | |
download | nextcloud-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/Jobs')
-rw-r--r-- | apps/user_ldap/lib/Jobs/CleanUp.php | 3 | ||||
-rw-r--r-- | apps/user_ldap/lib/Jobs/UpdateGroups.php | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Jobs/CleanUp.php b/apps/user_ldap/lib/Jobs/CleanUp.php index c97eb237a64..b516e08b9e1 100644 --- a/apps/user_ldap/lib/Jobs/CleanUp.php +++ b/apps/user_ldap/lib/Jobs/CleanUp.php @@ -35,6 +35,7 @@ use OCA\User_LDAP\Mapping\UserMapping; use OCA\User_LDAP\User\DeletedUsersIndex; use OCA\User_LDAP\User_LDAP; use OCA\User_LDAP\User_Proxy; +use OCA\User_LDAP\UserPluginManager; /** * Class CleanUp @@ -105,7 +106,7 @@ class CleanUp extends TimedJob { $this->ocConfig, \OC::$server->getNotificationManager(), \OC::$server->getUserSession(), - \OC::$server->query('LDAPUserPluginManager') + \OC::$server->query(UserPluginManager::class) ); } diff --git a/apps/user_ldap/lib/Jobs/UpdateGroups.php b/apps/user_ldap/lib/Jobs/UpdateGroups.php index 6241483cb92..58254bf41e9 100644 --- a/apps/user_ldap/lib/Jobs/UpdateGroups.php +++ b/apps/user_ldap/lib/Jobs/UpdateGroups.php @@ -37,6 +37,7 @@ namespace OCA\User_LDAP\Jobs; use OCA\User_LDAP\Access; use OCA\User_LDAP\Connection; use OCA\User_LDAP\FilesystemHelper; +use OCA\User_LDAP\GroupPluginManager; use OCA\User_LDAP\Helper; use OCA\User_LDAP\LDAP; use OCA\User_LDAP\LogWrapper; @@ -198,9 +199,9 @@ class UpdateGroups extends \OC\BackgroundJob\TimedJob { $userMapper = new UserMapping($dbc); $ldapAccess->setGroupMapper($groupMapper); $ldapAccess->setUserMapper($userMapper); - self::$groupBE = new \OCA\User_LDAP\Group_LDAP($ldapAccess, \OC::$server->query('LDAPGroupPluginManager')); + self::$groupBE = new \OCA\User_LDAP\Group_LDAP($ldapAccess, \OC::$server->query(GroupPluginManager::class)); } else { - self::$groupBE = new \OCA\User_LDAP\Group_Proxy($configPrefixes, $ldapWrapper, \OC::$server->query('LDAPGroupPluginManager')); + self::$groupBE = new \OCA\User_LDAP\Group_Proxy($configPrefixes, $ldapWrapper, \OC::$server->query(GroupPluginManager::class)); } return self::$groupBE; |