Allow modification of PHPCI variables without modifying versioned code.

Closes #786
Closes #781
This commit is contained in:
Àlex Corretgé 2015-02-09 10:00:42 +01:00 committed by Dan Cryer
commit f0d53638dc
2 changed files with 12 additions and 0 deletions

View file

@ -62,6 +62,17 @@ if (file_exists($configFile)) {
$config->loadYaml($configFile);
}
/**
* Allow to modify PHPCI configuration without modify versioned code.
* Dameons should be killed to apply changes in the file.
*
* @ticket 781
*/
$localVarsFile = dirname(__FILE__) . '/local_vars.php';
if (is_readable($localVarsFile)) {
require_once $localVarsFile;
}
require_once(dirname(__FILE__) . '/vars.php');
\PHPCI\Helper\Lang::init($config);