Fix: memory db settings

This commit is contained in:
Alexander Pankratov 2023-08-18 19:30:40 +02:00
parent 5063f60b89
commit 3c6c843fe6

View File

@ -167,8 +167,13 @@ class Client
'redis' => new Settings\Database\Redis(),
};
$settingsObject->setDb($type);
self::getSettingsFromArray($value[$value['type']], $type);
unset($value['type'], $value['mysql'], $value['memory'], $value['postgres'], $value['redis']);
if ($value['type'] === 'memory') {
self::getSettingsFromArray([], $type);
} else {
self::getSettingsFromArray($value[$value['type']], $type);
}
unset($value[$value['type']], $value['type'],);
if (count($value) === 0) {
continue;
}