Allow modification of PHPCI variables without modifying versioned code.
Closes #786 Closes #781
This commit is contained in:
parent
4a1d62b44a
commit
f0d53638dc
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -15,3 +15,4 @@ PHPCI/Model/Migration.php
|
||||||
PHPCI/Model/Base/MigrationBase.php
|
PHPCI/Model/Base/MigrationBase.php
|
||||||
PHPCI/Store/MigrationStore.php
|
PHPCI/Store/MigrationStore.php
|
||||||
PHPCI/Store/Base/MigrationStoreBase.php
|
PHPCI/Store/Base/MigrationStoreBase.php
|
||||||
|
local_vars.php
|
||||||
|
|
|
@ -62,6 +62,17 @@ if (file_exists($configFile)) {
|
||||||
$config->loadYaml($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');
|
require_once(dirname(__FILE__) . '/vars.php');
|
||||||
|
|
||||||
\PHPCI\Helper\Lang::init($config);
|
\PHPCI\Helper\Lang::init($config);
|
||||||
|
|
Loading…
Reference in a new issue