mirror of
https://github.com/nextcloud/server.git
synced 2026-04-09 19:16:36 -04:00
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>
45 lines
873 B
PHP
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;
|
|
}
|