main-local.php 2.93 KB
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

/**
 * Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
 * OPEN 2.0
 *
 * @package    arter\amos\basic\template
 * @category   CategoryName
 * @author     Elite Division S.r.l.
 */

/*---------- begin: BOOTSTRAP --------*/
/*---------- end: BOOTSTRAP --------*/

/*---------- begin: COMPONENTS AMOS --------*/
/*---------- end: COMPONENTS AMOS --------*/

/*---------- begin: COMPONENTS OTHERS --------*/
$components['db'] = [
            'class' => 'yii\db\Connection',
Marcello Pivanti's avatar
Marcello Pivanti committed
21
22
23
            'dsn' => 'mysql:host=localhost;dbname=ADD_HERE_DATABASE_NAME',
            'username' => 'ADD_HERE_DATABASE_USERNAME',
            'password' => 'ADD_HERE_DATABASE_PASSWORD',
Marcello Pivanti's avatar
Marcello Pivanti committed
24
25
26
27
28
29
30
31
32
33
34
35
36
            'charset' => 'utf8',
            'enableSchemaCache' => true,
            'schemaCacheDuration' => 88000,
            'schemaCache' => 'schemaCache',
            'attributes'=>[
                PDO::ATTR_PERSISTENT => true
            ]
        ];
$components['mailer'] = [
            'class' => 'yii\swiftmailer\Mailer',
            'useFileTransport' => false,
            'transport' => [
                'class' => 'Swift_SmtpTransport',
Marcello Pivanti's avatar
Marcello Pivanti committed
37
38
39
40
                'host' => 'ADD_HERE_EMAIL_HOST',
                'username' => 'ADD_HERE_EMAIL_USERNAME',
                'password' => 'ADD_HERE_EMAIL_PASSWORD',
                'port' => 'ADD_HERE_EMAIL_PORT',
Marcello Pivanti's avatar
Marcello Pivanti committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
                //'encryption' => 'tls',
            ],
        ];
        
$components['i18n'] = [
            'translations' => [
				'extraCategoryPaths' => [
                    'amosadmin' => '@common/translation/amosadmin/i18n',
                    'amoscommunity' => '@common/translation/amoscommunity/i18n',
                    'amosinvitations' => '@common/translation/amosinvitations/i18n',
                    'amosmyactivities' => '@common/translation/amosmyactivities/i18n',
                    'amosorganizzazioni' => '@common/translation/amosorganizzazioni/i18n',
				],
            ],
        ];
/*---------- end: COMPONENTS OTHERS --------*/

/*---------- begin: MODULES AMOS --------*/
$modules['admin'] = [
    'fieldsConfigurations' => [
        'boxes' => [
            'box_facilitatori' => ['form' => true, 'view' => true],
            'box_privacy' => ['form' => true, 'view' => true],
        ],
        'fields' => [
            'facilitatore_id' => ['form' => true, 'view' => true, 'referToBox' => 'box_facilitatori'],
            'privacy' => ['form' => true, 'view' => true, 'referToBox' => 'box_privacy'],
        ]
    ]
];
$modules['community'] = [
    'class' => 'arter\amos\community\AmosCommunity',
];
$modules['cwh'] = [
    'class' => 'arter\amos\cwh\AmosCwh',
    'rbacEnabled' => false
];
$modules['tag'] = [
    'class' => 'arter\amos\tag\AmosTag',
];
/*---------- end: MODULES AMOS --------*/

/*---------- begin: MODULES OTHERS --------*/
/*---------- end: MODULES OTHERS --------*/

$config = [
    'bootstrap' => $bootstrap,
    'components' => $components,
    'modules' => $modules,
];

return $config;