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

class ConnectionFactory {
	/** @var ILDAPWrapper */
	private $ldap;

	public function __construct(ILDAPWrapper $ldap) {
		$this->ldap = $ldap;
	}

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