Files
nextcloud-server-mirror/lib/public/LDAP/ILDAPProviderFactory.php
Carl Schwan 1d55835d39 refactor: Remove most usages of IAppContainer and IServerContainer
And port more stuff to standard ContainerInterface interface

Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-07-16 07:59:58 +02:00

46 lines
887 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\LDAP;
use OCP\AppFramework\Attribute\Consumable;
use Psr\Container\ContainerInterface;
/**
* Interface ILDAPProviderFactory
*
* This class is responsible for instantiating and returning an ILDAPProvider
* instance.
*
* @since 11.0.0
*/
#[Consumable(since: '11.0.0')]
interface ILDAPProviderFactory {
/**
* Constructor for the LDAP provider factory
*
* @since 11.0.0
*/
public function __construct(ContainerInterface $serverContainer);
/**
* creates and returns an instance of the ILDAPProvider
*
* @since 11.0.0
*/
public function getLDAPProvider(): ILDAPProvider;
/**
* Check if an ldap provider is available
*
* @since 21.0.0
*/
public function isAvailable(): bool;
}