1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00
php-e107/e107_tests/lib/config.php
Deltik e49ee50d31
Preparation for merge with e107 repository
Moved all test files to e107_tests subdirectory
2019-11-27 11:18:53 -06:00

19 lines
390 B
PHP

<?php
use Symfony\Component\Yaml\Yaml;
$params = [];
foreach ([
'config.sample.yml',
'config.yml',
'config.local.yml'
] as $config_filename)
{
$absolute_config_path = codecept_root_dir() . '/' . $config_filename;
if (file_exists($absolute_config_path))
$params = array_replace_recursive($params, Yaml::parse(file_get_contents($absolute_config_path)));
}
return $params;