Updating Settings Controller to use the configured config file, rather than assuming config.yml
This commit is contained in:
parent
e423c73c4e
commit
8ab098821b
2 changed files with 6 additions and 3 deletions
|
|
@ -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" ';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue