2017-02-13 14:47:14 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Configuration file generated by ZFTool
|
|
|
|
* The previous configuration file is stored in application.config.old
|
|
|
|
*
|
|
|
|
* @see https://github.com/zendframework/ZFTool
|
|
|
|
*/
|
|
|
|
$env = getenv('APP_ENV') ?: 'production';
|
2023-10-18 16:29:47 +02:00
|
|
|
$appConfDir = getenv('APP_CONF_DIR') ?: null;
|
2017-03-10 14:03:35 +01:00
|
|
|
|
2023-10-18 16:29:47 +02:00
|
|
|
defined('PROJECT_ROOT') or define('PROJECT_ROOT', __DIR__ . '/../');
|
|
|
|
|
|
|
|
if ($env !== 'testing') {
|
|
|
|
$confPaths = ['config/autoload/{,*.}{global,local}.php'];
|
|
|
|
}
|
2019-10-30 14:52:53 +01:00
|
|
|
$dataPath = 'data';
|
|
|
|
if (!empty($appConfDir)) {
|
|
|
|
$confPaths[] = $appConfDir . '/local.php';
|
|
|
|
$dataPath = $appConfDir . '/data';
|
2023-10-18 16:29:47 +02:00
|
|
|
if (!is_dir($dataPath . '/cache')) {
|
|
|
|
if (is_dir(PROJECT_ROOT . 'data/cache')) {
|
|
|
|
$dataPath = PROJECT_ROOT . 'data';
|
|
|
|
} elseif (!mkdir($concurrentDirectory = $dataPath . '/cache') && !is_dir($concurrentDirectory)) {
|
|
|
|
throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory));
|
|
|
|
}
|
2017-04-11 10:21:52 +02:00
|
|
|
}
|
2017-03-10 14:03:35 +01:00
|
|
|
}
|
2023-10-24 11:40:14 +02:00
|
|
|
defined('DATA_PATH') or define('DATA_PATH', $dataPath);
|
2019-10-30 14:52:53 +01:00
|
|
|
|
2017-02-13 14:47:14 +01:00
|
|
|
return array(
|
|
|
|
'modules' => array(
|
2020-02-21 11:46:10 +01:00
|
|
|
'Laminas\Di',
|
|
|
|
'Laminas\Cache',
|
|
|
|
'Laminas\Form',
|
|
|
|
'Laminas\InputFilter',
|
|
|
|
'Laminas\Filter',
|
|
|
|
'Laminas\Paginator',
|
|
|
|
'Laminas\Hydrator',
|
|
|
|
'Laminas\Router',
|
|
|
|
'Laminas\Log',
|
|
|
|
'Laminas\Mail',
|
|
|
|
'Laminas\Validator',
|
|
|
|
'Laminas\I18n',
|
2022-08-19 10:47:38 +02:00
|
|
|
'Laminas\Mvc\Middleware',
|
2017-02-13 14:47:14 +01:00
|
|
|
'DoctrineModule',
|
|
|
|
'DoctrineORMModule',
|
2019-10-30 14:52:53 +01:00
|
|
|
'Monarc\Core',
|
|
|
|
'Monarc\BackOffice',
|
2017-02-13 14:47:14 +01:00
|
|
|
),
|
|
|
|
'module_listener_options' => array(
|
|
|
|
'module_paths' => array(
|
|
|
|
'./module',
|
|
|
|
'./vendor'
|
|
|
|
),
|
2019-10-30 14:52:53 +01:00
|
|
|
'config_glob_paths' => $confPaths,
|
|
|
|
'config_cache_enabled' => $env === 'production',
|
2017-02-13 14:47:14 +01:00
|
|
|
'config_cache_key' => 'c8aaaaa11586f8b1bf5565cc6064e70a', // md5('config_cache_key_monarc')
|
2019-10-30 14:52:53 +01:00
|
|
|
'module_map_cache_enabled' => $env === 'production',
|
2017-02-13 14:47:14 +01:00
|
|
|
'module_map_cache_key' => '664579376c4dcdcaa0bcdd0f7e7bf25b', // md5('module_map_cache_key_monarc'),
|
2019-10-30 14:52:53 +01:00
|
|
|
'cache_dir' => $dataPath . '/cache/',
|
|
|
|
'check_dependencies' => $env !== 'production',
|
2017-02-13 14:47:14 +01:00
|
|
|
),
|
|
|
|
);
|