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
parent 4a1d62b44a
commit f0d53638dc
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -15,3 +15,4 @@ PHPCI/Model/Migration.php
PHPCI/Model/Base/MigrationBase.php
PHPCI/Store/MigrationStore.php
PHPCI/Store/Base/MigrationStoreBase.php
local_vars.php

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);