|
25 | 25 | * |
26 | 26 | */ |
27 | 27 |
|
| 28 | +use OCA\User_LDAP\Command\UpdateUUID; |
| 29 | +use OCA\User_LDAP\Group_Proxy; |
28 | 30 | use OCA\User_LDAP\Helper; |
29 | 31 | use OCA\User_LDAP\LDAP; |
| 32 | +use OCA\User_LDAP\Mapping\GroupMapping; |
30 | 33 | use OCA\User_LDAP\User_Proxy; |
31 | 34 | use OCA\User_LDAP\Mapping\UserMapping; |
32 | 35 | use OCA\User_LDAP\User\DeletedUsersIndex; |
|
35 | 38 |
|
36 | 39 | $dbConnection = \OC::$server->getDatabaseConnection(); |
37 | 40 | $userMapping = new UserMapping($dbConnection); |
| 41 | +$groupMapping = \OC::$server->get(GroupMapping::class); |
38 | 42 | $helper = new Helper(\OC::$server->getConfig()); |
39 | 43 | $ocConfig = \OC::$server->getConfig(); |
| 44 | +$activeConfigurationPrefixes = $helper->getServerConfigurationPrefixes(true); |
40 | 45 | $uBackend = new User_Proxy( |
41 | | - $helper->getServerConfigurationPrefixes(true), |
| 46 | + $activeConfigurationPrefixes, |
42 | 47 | new LDAP(), |
43 | 48 | $ocConfig, |
44 | 49 | \OC::$server->getNotificationManager(), |
45 | 50 | \OC::$server->getUserSession(), |
46 | 51 | \OC::$server->query(UserPluginManager::class) |
47 | 52 | ); |
| 53 | +$groupBackend = new Group_Proxy($activeConfigurationPrefixes, new LDAP(), \OC::$server->get(\OCA\User_LDAP\GroupPluginManager::class)); |
48 | 54 | $deletedUsersIndex = new DeletedUsersIndex( |
49 | 55 | $ocConfig, $dbConnection, $userMapping |
50 | 56 | ); |
| 57 | +$logger = \OC::$server->get(\Psr\Log\LoggerInterface::class); |
51 | 58 |
|
52 | 59 | $application->add(new OCA\User_LDAP\Command\ShowConfig($helper)); |
53 | 60 | $application->add(new OCA\User_LDAP\Command\SetConfig()); |
|
66 | 73 | $application->add(new OCA\User_LDAP\Command\CheckUser( |
67 | 74 | $uBackend, $helper, $deletedUsersIndex, $userMapping) |
68 | 75 | ); |
| 76 | +$application->add(new UpdateUUID($userMapping, $groupMapping, $uBackend, $groupBackend, $logger)); |
0 commit comments