2016-04-12 14:39:18 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Configuration file generated by ZFTool
|
|
|
|
* The previous configuration file is stored in application.config.old
|
|
|
|
*
|
|
|
|
* @see https://github.com/zendframework/ZFTool
|
|
|
|
*/
|
2019-10-28 13:23:06 +01:00
|
|
|
$env = getenv('APPLICATION_ENV') ?: 'production';
|
2019-09-04 20:40:41 +02:00
|
|
|
$appConfDir = getenv('APP_CONF_DIR') ?? '';
|
2017-03-10 14:16:28 +01:00
|
|
|
|
2019-09-04 20:40:41 +02:00
|
|
|
$confPaths = ['config/autoload/{,*.}{global,local}.php'];
|
|
|
|
$dataPath = 'data';
|
|
|
|
if (!empty($appConfDir)) {
|
|
|
|
$confPaths[] = $appConfDir . '/local.php';
|
|
|
|
$dataPath = $appConfDir . '/data';
|
|
|
|
if (!is_dir($dataPath . '/cache')) {
|
|
|
|
if (!mkdir($concurrentDirectory = $dataPath . '/cache') && !is_dir($concurrentDirectory)) {
|
|
|
|
throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory));
|
|
|
|
}
|
2017-04-11 10:13:26 +02:00
|
|
|
}
|
2017-03-10 14:16:28 +01:00
|
|
|
}
|
2016-12-16 16:31:24 +01:00
|
|
|
|
2019-09-04 20:40:41 +02:00
|
|
|
return [
|
|
|
|
'modules' => [
|
2019-09-29 17:20:51 +02:00
|
|
|
'Zend\Mvc\Console',
|
2019-09-20 15:26:39 +02:00
|
|
|
'Zend\I18n',
|
2019-09-12 14:38:30 +02:00
|
|
|
'Zend\Mail',
|
2019-09-05 08:13:09 +02:00
|
|
|
'Zend\Log',
|
2019-09-04 20:40:41 +02:00
|
|
|
'Monarc\Core',
|
|
|
|
'Monarc\FrontOffice',
|
|
|
|
'Zend\Cache',
|
|
|
|
'Zend\Form',
|
|
|
|
'Zend\InputFilter',
|
|
|
|
'Zend\Filter',
|
|
|
|
'Zend\Paginator',
|
|
|
|
'Zend\Hydrator',
|
|
|
|
'Zend\Di',
|
|
|
|
'Zend\Router',
|
|
|
|
'Zend\Validator',
|
2016-04-12 14:39:18 +02:00
|
|
|
'DoctrineModule',
|
|
|
|
'DoctrineORMModule',
|
2019-09-04 20:40:41 +02:00
|
|
|
],
|
|
|
|
'module_listener_options' => [
|
|
|
|
'module_paths' => [
|
2016-04-12 14:39:18 +02:00
|
|
|
'./module',
|
|
|
|
'./vendor'
|
2019-09-04 20:40:41 +02:00
|
|
|
],
|
|
|
|
'config_glob_paths' => $confPaths,
|
|
|
|
'config_cache_enabled' => $env === 'production',
|
2016-11-17 14:55:24 +01:00
|
|
|
'config_cache_key' => 'c8aaaaa11586f8b1bf5565cc6064e70a', // md5('config_cache_key_monarc')
|
2019-09-04 20:40:41 +02:00
|
|
|
'module_map_cache_enabled' => $env === 'production',
|
2016-11-17 14:55:24 +01:00
|
|
|
'module_map_cache_key' => '664579376c4dcdcaa0bcdd0f7e7bf25b', // md5('module_map_cache_key_monarc'),
|
2019-09-04 20:40:41 +02:00
|
|
|
'cache_dir' => $dataPath . '/cache/',
|
|
|
|
'check_dependencies' => $env !== 'production',
|
|
|
|
],
|
|
|
|
];
|