aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/ConnectionFactory.php
blob: fbc30f6b73f9f16242b1c0e9212615261f5ebdca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
namespace OCA\User_LDAP;

class ConnectionFactory {
	public function __construct(
		private ILDAPWrapper $ldap,
	) {
	}

	public function get($prefix) {
		return new Connection($this->ldap, $prefix, 'user_ldap');
	}
}