mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 09:06:35 -04:00
ensure that factoryClass exisits before instantiation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
75f7287b5e
commit
12e4484dba
1 changed files with 1 additions and 1 deletions
|
|
@ -1031,7 +1031,7 @@ class Server extends ServerContainer implements IServerContainer {
|
|||
$this->registerService(ILDAPProviderFactory::class, function (ContainerInterface $c) {
|
||||
$config = $c->get(\OCP\IConfig::class);
|
||||
$factoryClass = $config->getSystemValue('ldapProviderFactory', null);
|
||||
if (is_null($factoryClass)) {
|
||||
if (is_null($factoryClass) || !class_exists($factoryClass)) {
|
||||
return new NullLDAPProviderFactory($this);
|
||||
}
|
||||
/** @var \OCP\LDAP\ILDAPProviderFactory $factory */
|
||||
|
|
|
|||
Loading…
Reference in a new issue