2018-01-05 08:27:36 -05:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2018-01-05 08:27:36 -05:00
|
|
|
/**
|
2024-05-29 05:32:54 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-01-05 08:27:36 -05:00
|
|
|
*/
|
2026-05-28 08:54:31 -04:00
|
|
|
|
2018-01-05 08:27:36 -05:00
|
|
|
namespace OCA\User_LDAP;
|
|
|
|
|
|
|
|
|
|
class ConnectionFactory {
|
2024-10-18 06:04:22 -04:00
|
|
|
public function __construct(
|
|
|
|
|
private ILDAPWrapper $ldap,
|
|
|
|
|
) {
|
2018-01-05 08:27:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function get($prefix) {
|
|
|
|
|
return new Connection($this->ldap, $prefix, 'user_ldap');
|
|
|
|
|
}
|
|
|
|
|
}
|