aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/ConnectionFactory.php
blob: dd0ad31920a25df142553e16c9d77590298a2cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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');
	}
}