debug connection

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-07-05 12:24:50 +02:00
parent cce5822f81
commit 7df4bb7b01
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

View file

@ -121,6 +121,7 @@ abstract class AbstractDatabase {
}
$connectionParams = array_merge($connectionParams, $configOverwrite);
$connectionParams = array_merge($connectionParams, ['primary' => $connectionParams, 'replica' => [$connectionParams]]);
var_dump($connectionParams);
$cf = new ConnectionFactory($this->config);
$connection = $cf->getConnection($this->config->getValue('dbtype', 'sqlite'), $connectionParams);
$connection->ensureConnectedToPrimary();