nextcloud/lib/public/LDAP/ILDAPProviderFactory.php
Côme Chilliet 99a8e6c3c4
fix: Fix typing in LDAP provider public interfaces
Remove obsolete `resource` typing for ldap with PHP>=8.1.
Add proper attributes.
Add strong typing.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2026-04-01 14:36:40 +02:00

45 lines
873 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 OCP\IServerContainer;
/**
* 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(IServerContainer $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;
}