nextcloud/lib/private/LDAP/NullLDAPProviderFactory.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

25 lines
542 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\LDAP;
use OCP\IServerContainer;
use OCP\LDAP\ILDAPProviderFactory;
class NullLDAPProviderFactory implements ILDAPProviderFactory {
public function __construct(IServerContainer $serverContainer) {
}
public function getLDAPProvider(): never {
throw new \Exception('No LDAP provider is available');
}
public function isAvailable(): bool {
return false;
}
}