parent
8efb465eee
commit
80fefe27dc
|
@ -149,7 +149,13 @@ class Backend implements ConfigAwareFactory, DatasourceInterface
|
||||||
$name = self::getDefaultBackendName();
|
$name = self::getDefaultBackendName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset(self::$backendConfigs[$name])) {
|
||||||
$config = 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…
Reference in New Issue