EVO - config : Allow customization of the config file location path
parent
0513d19cb4
commit
9463caed3b
|
@ -6,6 +6,12 @@
|
||||||
* @see https://github.com/zendframework/ZFTool
|
* @see https://github.com/zendframework/ZFTool
|
||||||
*/
|
*/
|
||||||
$env = getenv('APP_ENV') ?: 'production';
|
$env = getenv('APP_ENV') ?: 'production';
|
||||||
|
$appconfdir = getenv('APP_CONF_DIR') ? getenv('APP_CONF_DIR') : '';
|
||||||
|
|
||||||
|
$confpaths = [ 'config/autoload/{,*.}{global,local}.php' ];
|
||||||
|
if( ! empty($appconfdir) ){
|
||||||
|
$confpaths[] = $appconfdir.'/local.php';
|
||||||
|
}
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'modules' => array(
|
'modules' => array(
|
||||||
|
@ -19,9 +25,7 @@ return array(
|
||||||
'./module',
|
'./module',
|
||||||
'./vendor'
|
'./vendor'
|
||||||
),
|
),
|
||||||
'config_glob_paths' => array(
|
'config_glob_paths' => $confpaths,
|
||||||
'config/autoload/{,*.}{global,local}.php'
|
|
||||||
),
|
|
||||||
'config_cache_enabled' => ($env == 'production'),
|
'config_cache_enabled' => ($env == 'production'),
|
||||||
'config_cache_key' => 'c8aaaaa11586f8b1bf5565cc6064e70a', // md5('config_cache_key_monarc')
|
'config_cache_key' => 'c8aaaaa11586f8b1bf5565cc6064e70a', // md5('config_cache_key_monarc')
|
||||||
'module_map_cache_enabled' => ($env == 'production'),
|
'module_map_cache_enabled' => ($env == 'production'),
|
||||||
|
|
Loading…
Reference in New Issue