2016-04-12 14:39:18 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Local Configuration Override
|
|
|
|
*
|
|
|
|
* This configuration override file is for overriding environment-specific and
|
|
|
|
* security-sensitive configuration information. Copy this file without the
|
|
|
|
* .dist extension at the end and populate values as needed.
|
|
|
|
*
|
|
|
|
* @NOTE: This file is ignored from Git by default with the .gitignore included
|
|
|
|
* in ZendSkeletonApplication. This is a good practice, as it prevents sensitive
|
|
|
|
* credentials from accidentally being committed into version control.
|
|
|
|
*/
|
|
|
|
|
2017-12-06 15:58:52 +01:00
|
|
|
$appdir = getenv('APP_DIR') ? getenv('APP_DIR') : '/var/lib/monarc/fo';
|
|
|
|
$string = file_get_contents($appdir.'/package.json');
|
|
|
|
if($string === FALSE) {
|
|
|
|
$string = file_get_contents('./package.json');
|
|
|
|
}
|
|
|
|
$package_json = json_decode($string, true);
|
|
|
|
|
2016-04-12 14:39:18 +02:00
|
|
|
return array(
|
2016-06-02 11:04:52 +02:00
|
|
|
'doctrine' => array(
|
|
|
|
'connection' => array(
|
|
|
|
'orm_default' => array(
|
|
|
|
'params' => array(
|
|
|
|
'host' => 'localhost',
|
|
|
|
'user' => 'root',
|
|
|
|
'password' => 'password',
|
|
|
|
'dbname' => 'monarc_common',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'orm_cli' => array(
|
|
|
|
'params' => array(
|
|
|
|
'host' => 'localhost',
|
|
|
|
'user' => 'root',
|
|
|
|
'password' => 'password',
|
2017-02-01 11:00:04 +01:00
|
|
|
'dbname' => 'monarc_cli',
|
2016-06-02 11:04:52 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2016-06-02 12:16:03 +02:00
|
|
|
|
|
|
|
'languages' => [
|
2016-12-21 13:23:32 +01:00
|
|
|
'fr' => [
|
|
|
|
'index' => 1,
|
|
|
|
'label' => 'Français',
|
|
|
|
],
|
|
|
|
'en' => [
|
|
|
|
'index' => 2,
|
|
|
|
'label' => 'English',
|
|
|
|
],
|
|
|
|
'de' => [
|
|
|
|
'index' => 3,
|
|
|
|
'label' => 'Deutsch',
|
|
|
|
],
|
2017-09-21 15:57:50 +02:00
|
|
|
'ne' => [
|
|
|
|
'index' => 4,
|
|
|
|
'label' => 'Nederlands',
|
|
|
|
],
|
2016-06-02 12:16:03 +02:00
|
|
|
],
|
|
|
|
|
2016-07-28 11:20:16 +02:00
|
|
|
'defaultLanguageIndex' => 1,
|
|
|
|
|
|
|
|
/* Link with (ModuleCore)
|
|
|
|
config['languages'] = [
|
|
|
|
'fr' => array(
|
|
|
|
'index' => 1,
|
|
|
|
'label' => 'Français'
|
|
|
|
),
|
|
|
|
'en' => array(
|
|
|
|
'index' => 2,
|
|
|
|
'label' => 'English'
|
|
|
|
),
|
|
|
|
'de' => array(
|
|
|
|
'index' => 3,
|
|
|
|
'label' => 'Deutsch'
|
|
|
|
),
|
2017-09-21 15:57:50 +02:00
|
|
|
'ne' => array(
|
|
|
|
'index' => 4,
|
|
|
|
'label' => 'Nederlands',
|
|
|
|
),
|
2016-07-28 11:20:16 +02:00
|
|
|
]
|
|
|
|
*/
|
2017-09-21 15:57:50 +02:00
|
|
|
'activeLanguages' => array('fr','en','de','ne',),
|
2016-07-28 11:20:16 +02:00
|
|
|
|
2017-10-18 10:16:01 +02:00
|
|
|
'email' => [
|
|
|
|
'name' => 'MONARC',
|
|
|
|
'from' => 'info@monarc.lu',
|
|
|
|
],
|
|
|
|
|
2016-07-28 11:20:16 +02:00
|
|
|
'monarc' => array(
|
|
|
|
'ttl' => 20, // timeout
|
2017-11-20 08:51:32 +01:00
|
|
|
'cliModel' => 'generic', // model to display for the client, an ID of a specific model or 'generic' (empty for all)
|
2016-07-28 11:20:16 +02:00
|
|
|
),
|
2016-04-12 14:39:18 +02:00
|
|
|
);
|