nextcloud/apps/user_ldap/lib/LDAPProviderFactory.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
689 B
PHP
Raw Normal View History

2016-07-22 04:46:29 -04:00
<?php
declare(strict_types=1);
2016-07-22 04:46:29 -04:00
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
2016-07-22 04:46:29 -04:00
*/
2016-07-22 04:46:29 -04:00
namespace OCA\User_LDAP;
use OCP\LDAP\ILDAPProvider;
use OCP\LDAP\ILDAPProviderFactory;
use Psr\Container\ContainerInterface;
2016-07-22 04:46:29 -04:00
class LDAPProviderFactory implements ILDAPProviderFactory {
public function __construct(
private ContainerInterface $serverContainer,
) {
2016-07-22 04:46:29 -04:00
}
public function getLDAPProvider(): ILDAPProvider {
return $this->serverContainer->get(LDAPProvider::class);
2016-07-22 04:46:29 -04:00
}
public function isAvailable(): bool {
return true;
}
2016-07-22 04:46:29 -04:00
}