diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-12-20 17:08:26 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-12-20 18:28:29 +0100 |
commit | 61ed363f820a3b25b68289ed2c03ff5e5edfed91 (patch) | |
tree | ace78508902f8d20bc3de4666d90af1b0445ed5b /apps/user_ldap/appinfo | |
parent | 3ca70d647a36144e64cbe4b90ffa97b3d9b64470 (diff) | |
download | nextcloud-server-61ed363f820a3b25b68289ed2c03ff5e5edfed91.tar.gz nextcloud-server-61ed363f820a3b25b68289ed2c03ff5e5edfed91.zip |
planned refactorings for OC 8
Diffstat (limited to 'apps/user_ldap/appinfo')
-rw-r--r-- | apps/user_ldap/appinfo/register_command.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/apps/user_ldap/appinfo/register_command.php b/apps/user_ldap/appinfo/register_command.php index 314c73e6c4a..e0013c4eb7a 100644 --- a/apps/user_ldap/appinfo/register_command.php +++ b/apps/user_ldap/appinfo/register_command.php @@ -10,6 +10,17 @@ use OCA\user_ldap\lib\Helper; use OCA\user_ldap\lib\LDAP; use OCA\user_ldap\User_Proxy; use OCA\User_LDAP\Mapping\UserMapping; +use OCA\User_LDAP\lib\User\DeletedUsersIndex; + +$dbConnection = \OC::$server->getDatabaseConnection(); +$userMapping = new UserMapping($dbConnection); +$helper = new Helper(); +$uBackend = new User_Proxy( + $helper->getServerConfigurationPrefixes(true), + new LDAP() +); +$deletedUsersIndex = new DeletedUsersIndex( + \OC::$server->getConfig(), $dbConnection, $userMapping); $application->add(new OCA\user_ldap\Command\ShowConfig()); $application->add(new OCA\user_ldap\Command\SetConfig()); @@ -17,13 +28,6 @@ $application->add(new OCA\user_ldap\Command\TestConfig()); $application->add(new OCA\user_ldap\Command\CreateEmptyConfig()); $application->add(new OCA\user_ldap\Command\DeleteConfig()); $application->add(new OCA\user_ldap\Command\Search()); -$userMapping = new UserMapping(\OC::$server->getDatabaseConnection()); $application->add(new OCA\user_ldap\Command\ShowRemnants($userMapping)); -$helper = new Helper(); -$uBackend = new User_Proxy( - $helper->getServerConfigurationPrefixes(true), - new LDAP() -); $application->add(new OCA\user_ldap\Command\CheckUser( - $uBackend, $helper, \OC::$server->getConfig() -)); + $uBackend, $helper, $deletedUsersIndex, $userMapping)); |