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