protected function loadPhpConfig($filename, $allowOverride)
{
$returnedConfig = (require_once $filename);
if (isset($dbPatchConfig)) {
return new Zend_Config($dbPatchConfig, $allowOverride);
}
if ($returnedConfig instanceof Zend_Config) {
return $returnedConfig;
}
if (is_array($returnedConfig)) {
return new Zend_Config($returnedConfig, $allowOverride);
}
throw new DbPatch_Exception('Could not determine database configuration');
}