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
|
|
|
|
*/
|
2023-10-24 11:34:21 +02:00
|
|
|
$env = getenv('APP_ENV') ?: 'production';
|
2020-04-14 11:57:21 +02:00
|
|
|
$appConfDir = getenv('APP_CONF_DIR') ?: null;
|
2017-03-10 14:16:28 +01:00
|
|
|
|
2023-10-10 12:11:29 +02:00
|
|
|
defined('PROJECT_ROOT') or define('PROJECT_ROOT', __DIR__ . '/../');
|
2020-04-14 11:57:21 +02:00
|
|
|
if ($env !== 'testing') {
|
|
|
|
$confPaths = ['config/autoload/{,*.}{global,local}.php'];
|
|
|
|
}
|
2023-10-24 11:34:21 +02:00
|
|
|
|
2019-09-04 20:40:41 +02:00
|
|
|
$dataPath = 'data';
|
|
|
|
if (!empty($appConfDir)) {
|
|
|
|
$confPaths[] = $appConfDir . '/local.php';
|
|
|
|
$dataPath = $appConfDir . '/data';
|
|
|
|
if (!is_dir($dataPath . '/cache')) {
|
2023-10-10 12:11:29 +02:00
|
|
|
if (is_dir(PROJECT_ROOT . 'data/cache')) {
|
|
|
|
$dataPath = PROJECT_ROOT . 'data';
|
|
|
|
} elseif (!mkdir($concurrentDirectory = $dataPath . '/cache') && !is_dir($concurrentDirectory)) {
|
2019-09-04 20:40:41 +02:00
|
|
|
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
|
|
|
}
|
2023-10-24 11:34:21 +02:00
|
|
|
defined('DATA_PATH') or define('DATA_PATH', $dataPath);
|
2016-12-16 16:31:24 +01:00
|
|
|
|
2019-09-04 20:40:41 +02:00
|
|
|
return [
|
|
|
|
'modules' => [
|
2020-02-21 09:40:34 +01:00
|
|
|
'Laminas\I18n',
|
|
|
|
'Laminas\Mail',
|
|
|
|
'Laminas\Log',
|
2019-09-04 20:40:41 +02:00
|
|
|
'Monarc\Core',
|
|
|
|
'Monarc\FrontOffice',
|
2020-02-21 09:40:34 +01:00
|
|
|
'Laminas\Cache',
|
|
|
|
'Laminas\Form',
|
|
|
|
'Laminas\InputFilter',
|
|
|
|
'Laminas\Filter',
|
|
|
|
'Laminas\Paginator',
|
|
|
|
'Laminas\Hydrator',
|
|
|
|
'Laminas\Di',
|
|
|
|
'Laminas\Router',
|
|
|
|
'Laminas\Validator',
|
2022-06-21 14:44:21 +02:00
|
|
|
'Laminas\Mvc\Middleware',
|
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',
|
|
|
|
],
|
|
|
|
];
|