mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
parent
8efb465eee
commit
80fefe27dc
@ -149,7 +149,13 @@ class Backend implements ConfigAwareFactory, DatasourceInterface
|
|||||||
$name = self::getDefaultBackendName();
|
$name = self::getDefaultBackendName();
|
||||||
}
|
}
|
||||||
|
|
||||||
$config = self::$backendConfigs[$name];
|
if (isset(self::$backendConfigs[$name])) {
|
||||||
|
$config = self::$backendConfigs[$name];
|
||||||
|
} else {
|
||||||
|
throw new ConfigurationError(
|
||||||
|
'No configuration for backend' . $name
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
self::$backendInstances[$name] = $backend = new self($config, ResourceFactory::getResourceConfig($config->resource));
|
self::$backendInstances[$name] = $backend = new self($config, ResourceFactory::getResourceConfig($config->resource));
|
||||||
switch (strtolower($config->type)) {
|
switch (strtolower($config->type)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user