diff options
Diffstat (limited to 'apps/user_ldap/lib/Helper.php')
-rw-r--r-- | apps/user_ldap/lib/Helper.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Helper.php b/apps/user_ldap/lib/Helper.php index 1955e7b0eea..933aee382df 100644 --- a/apps/user_ldap/lib/Helper.php +++ b/apps/user_ldap/lib/Helper.php @@ -30,8 +30,22 @@ namespace OCA\User_LDAP; +use OCP\IConfig; + class Helper { + /** @var IConfig */ + private $config; + + /** + * Helper constructor. + * + * @param IConfig $config + */ + public function __construct(IConfig $config) { + $this->config = $config; + } + /** * returns prefixes for each saved LDAP/AD server configuration. * @param bool $activeConfigurations optional, whether only active configuration shall be @@ -251,7 +265,7 @@ class Helper { } //ain't it ironic? - $helper = new Helper(); + $helper = new Helper(\OC::$server->getConfig()); $configPrefixes = $helper->getServerConfigurationPrefixes(true); $ldapWrapper = new LDAP(); |