ConnectionFactory.php 352 B

1234567891011121314151617
  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. public function __construct(
  9. private ILDAPWrapper $ldap,
  10. ) {
  11. }
  12. public function get($prefix) {
  13. return new Connection($this->ldap, $prefix, 'user_ldap');
  14. }
  15. }