0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-06 23:10:43 +00:00
nextcloud_server/apps/user_ldap/lib/ConnectionFactory.php
Andy Scherzinger 8d8891c5bc
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-30 15:49:33 +02:00

19 lines
404 B
PHP

<?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');
}
}