Skip to content

Commit 7b94464

Browse files
committed
fixup! adjust backport to stable20
1 parent 928bec7 commit 7b94464

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/user_ldap/appinfo/register_command.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*
2626
*/
2727

28+
use OCA\User_LDAP\Command\UpdateUUID;
2829
use OCA\User_LDAP\Helper;
2930
use OCA\User_LDAP\LDAP;
3031
use OCA\User_LDAP\User_Proxy;
@@ -35,6 +36,7 @@
3536

3637
$dbConnection = \OC::$server->getDatabaseConnection();
3738
$userMapping = new UserMapping($dbConnection);
39+
$groupMapping = \OC::$server->get(\OCA\User_LDAP\Mapping\GroupMapping::class);
3840
$helper = new Helper(\OC::$server->getConfig());
3941
$ocConfig = \OC::$server->getConfig();
4042
$uBackend = new User_Proxy(
@@ -45,9 +47,11 @@
4547
\OC::$server->getUserSession(),
4648
\OC::$server->query(UserPluginManager::class)
4749
);
50+
$groupBackend = \OC::$server->get(\OCA\User_LDAP\Group_Proxy::class);
4851
$deletedUsersIndex = new DeletedUsersIndex(
4952
$ocConfig, $dbConnection, $userMapping
5053
);
54+
$logger = \OC::$server->get(\Psr\Log\LoggerInterface::class);
5155

5256
$application->add(new OCA\User_LDAP\Command\ShowConfig($helper));
5357
$application->add(new OCA\User_LDAP\Command\SetConfig());
@@ -66,3 +70,4 @@
6670
$application->add(new OCA\User_LDAP\Command\CheckUser(
6771
$uBackend, $helper, $deletedUsersIndex, $userMapping)
6872
);
73+
$application->add(new UpdateUUID($userMapping, $groupMapping, $uBackend, $groupBackend, $logger));

0 commit comments

Comments
 (0)