main-local.php 1.2 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
<?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.
 */

return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
Marcello Pivanti's avatar
Marcello Pivanti committed
16
17
18
            '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
19
20
21
22
23
24
25
26
27
28
29
30
31
            'charset' => 'utf8',
            'enableSchemaCache' => true,
            'schemaCacheDuration' => 88000,
            'schemaCache' => 'schemaCache',
            'attributes'=>[
                PDO::ATTR_PERSISTENT => true
            ]
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'useFileTransport' => false,
            'transport' => [
                'class' => 'Swift_SmtpTransport',
Marcello Pivanti's avatar
Marcello Pivanti committed
32
33
34
35
                '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
36
37
38
39
40
                //'encryption' => 'tls',
            ],
        ],
    ],
];