0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-05-04 14:01:10 +00:00
nextcloud_server/apps/user_ldap/lib/ConnectionFactory.php
Ferdinand Thiessen 832f79ac93
chore: apply code style
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2025-04-30 19:04:59 +02:00

20 lines
405 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');
}
}