diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-01-07 00:52:18 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-01-07 00:52:18 +0100 |
commit | b9235e2a24ada2bf69fc23cd83405661bde7f0da (patch) | |
tree | f73ab7e9ca94e9a0a19d0ddbb9a82a7dc91c16b4 /apps/user_ldap/lib/proxy.php | |
parent | 64f0b055e67974141cf2e156d2b062f55768ce7d (diff) | |
download | nextcloud-server-b9235e2a24ada2bf69fc23cd83405661bde7f0da.tar.gz nextcloud-server-b9235e2a24ada2bf69fc23cd83405661bde7f0da.zip |
inject DB Connection to user manager
Diffstat (limited to 'apps/user_ldap/lib/proxy.php')
-rw-r--r-- | apps/user_ldap/lib/proxy.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/proxy.php b/apps/user_ldap/lib/proxy.php index 39d4b36c8bb..b4e6e33c1f4 100644 --- a/apps/user_ldap/lib/proxy.php +++ b/apps/user_ldap/lib/proxy.php @@ -49,16 +49,18 @@ abstract class Proxy { static $avatarM; static $userMap; static $groupMap; + static $db; if(is_null($fs)) { $ocConfig = \OC::$server->getConfig(); $fs = new FilesystemHelper(); $log = new LogWrapper(); $avatarM = \OC::$server->getAvatarManager(); - $userMap = new UserMapping(\OC::$server->getDatabaseConnection()); - $groupMap = new GroupMapping(\OC::$server->getDatabaseConnection()); + $db = \OC::$server->getDatabaseConnection(); + $userMap = new UserMapping($db); + $groupMap = new GroupMapping($db); } $userManager = - new user\Manager($ocConfig, $fs, $log, $avatarM, new \OCP\Image()); + new user\Manager($ocConfig, $fs, $log, $avatarM, new \OCP\Image(), $db); $connector = new Connection($this->ldap, $configPrefix); $access = new Access($connector, $this->ldap, $userManager); $access->setUserMapper($userMap); |