Updating Settings Controller to use the configured config file, rather than assuming config.yml

This commit is contained in:
Dan Cryer 2015-02-25 14:18:05 +00:00
commit 820d3831b8
2 changed files with 6 additions and 3 deletions

View file

@ -25,6 +25,8 @@ if (!empty($configEnv)) {
$configFile = $configEnv;
}
define('PHPCI_CONFIG_FILE', $configFile);
// If we don't have a config file at all, fail at this point and tell the user to install:
if (!file_exists($configFile) && (!defined('PHPCI_IS_CONSOLE') || !PHPCI_IS_CONSOLE)) {
$message = 'PHPCI has not yet been installed - Please use the command "./console phpci:install" ';