mirror of
https://github.com/nextcloud/server.git
synced 2026-11-25 15:16:20 +01:00
And port more stuff to standard ContainerInterface interface Signed-off-by: Carl Schwan <carlschwan@kde.org>
46 lines
887 B
PHP
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;
|
|
}
|