aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/ConnectionFactory.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/lib/ConnectionFactory.php')
-rw-r--r--apps/user_ldap/lib/ConnectionFactory.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/ConnectionFactory.php b/apps/user_ldap/lib/ConnectionFactory.php
new file mode 100644
index 00000000000..dd0ad31920a
--- /dev/null
+++ b/apps/user_ldap/lib/ConnectionFactory.php
@@ -0,0 +1,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');
+ }
+}