The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 4d4a0bf0 authored by Demian Katz's avatar Demian Katz
Browse files

Adjusted getDriverConfig() to use ConfigReader instead of parse_ini_file() in...

Adjusted getDriverConfig() to use ConfigReader instead of parse_ini_file() in order to take advantage of [Parent_Config], etc.
parent 0eda125b
No related merge requests found
......@@ -171,10 +171,14 @@ class Connection
{
// Determine config file name based on class name:
$parts = explode('\\', $this->getDriverClass());
$configFile = end($parts) . '.ini';
$configFilePath = ConfigReader::getConfigPath($configFile);
return file_exists($configFilePath)
? parse_ini_file($configFilePath, true) : array();
try {
$config = ConfigReader::getConfig(end($parts));
} catch (\Zend\Config\Exception\RuntimeException $e) {
// Configuration loading failed; probably means file does not
// exist -- just return an empty array in that case:
return array();
}
return $config->toArray();
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment