ConnectionFactory.php 404 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\User_LDAP;
  7. class ConnectionFactory {
  8. /** @var ILDAPWrapper */
  9. private $ldap;
  10. public function __construct(ILDAPWrapper $ldap) {
  11. $this->ldap = $ldap;
  12. }
  13. public function get($prefix) {
  14. return new Connection($this->ldap, $prefix, 'user_ldap');
  15. }
  16. }