diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-03-19 15:53:30 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-04-05 12:46:24 +0200 |
commit | f1565336bdaa72b6f4beddeb6fa04956f5da8f21 (patch) | |
tree | 67ddec46d0cf790d86f30851adb09a6c650074f0 /apps/user_ldap/lib/AccessFactory.php | |
parent | 373a1d53918db011ca36351ad8e5240567ad999c (diff) | |
download | nextcloud-server-f1565336bdaa72b6f4beddeb6fa04956f5da8f21.tar.gz nextcloud-server-f1565336bdaa72b6f4beddeb6fa04956f5da8f21.zip |
DI for NC's user manager
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/AccessFactory.php')
-rw-r--r-- | apps/user_ldap/lib/AccessFactory.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/AccessFactory.php b/apps/user_ldap/lib/AccessFactory.php index 45ff779bb01..f03f7f74202 100644 --- a/apps/user_ldap/lib/AccessFactory.php +++ b/apps/user_ldap/lib/AccessFactory.php @@ -26,6 +26,7 @@ namespace OCA\User_LDAP; use OCA\User_LDAP\User\Manager; use OCP\IConfig; +use OCP\IUserManager; class AccessFactory { /** @var ILDAPWrapper */ @@ -36,17 +37,21 @@ class AccessFactory { protected $helper; /** @var IConfig */ protected $config; + /** @var IUserManager */ + private $ncUserManager; public function __construct( ILDAPWrapper $ldap, Manager $userManager, Helper $helper, - IConfig $config) + IConfig $config, + IUserManager $ncUserManager) { $this->ldap = $ldap; $this->userManager = $userManager; $this->helper = $helper; $this->config = $config; + $this->ncUserManager = $ncUserManager; } public function get(Connection $connection) { @@ -55,7 +60,8 @@ class AccessFactory { $this->ldap, $this->userManager, $this->helper, - $this->config + $this->config, + $this->ncUserManager ); } } |