| @@ 39-45 (lines=7) @@ | ||
| 36 | */ |
|
| 37 | public function __construct($serverConfigPrefixes, ILDAPWrapper $ldap, GroupPluginManager $groupPluginManager) { |
|
| 38 | parent::__construct($ldap); |
|
| 39 | foreach($serverConfigPrefixes as $configPrefix) { |
|
| 40 | $this->backends[$configPrefix] = |
|
| 41 | new \OCA\User_LDAP\Group_LDAP($this->getAccess($configPrefix), $groupPluginManager); |
|
| 42 | if(is_null($this->refBackend)) { |
|
| 43 | $this->refBackend = &$this->backends[$configPrefix]; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| @@ 56-63 (lines=8) @@ | ||
| 53 | INotificationManager $notificationManager, IUserSession $userSession, |
|
| 54 | UserPluginManager $userPluginManager) { |
|
| 55 | parent::__construct($ldap); |
|
| 56 | foreach($serverConfigPrefixes as $configPrefix) { |
|
| 57 | $this->backends[$configPrefix] = |
|
| 58 | new User_LDAP($this->getAccess($configPrefix), $ocConfig, $notificationManager, $userSession, $userPluginManager); |
|
| 59 | ||
| 60 | if(is_null($this->refBackend)) { |
|
| 61 | $this->refBackend = &$this->backends[$configPrefix]; |
|
| 62 | } |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|