From f0d53638dcfd60ad23c09f0fbd10943e50e2e645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?A=CC=80lex=20Corretge=CC=81?= Date: Mon, 9 Feb 2015 10:00:42 +0100 Subject: [PATCH] Allow modification of PHPCI variables without modifying versioned code. Closes #786 Closes #781 --- .gitignore | 1 + bootstrap.php | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index fbfc1a28..79784a60 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/bootstrap.php b/bootstrap.php index 89d7c95b..b15a7e59 100755 --- a/bootstrap.php +++ b/bootstrap.php @@ -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);