[ 'db' => [ 'class' => \yii\db\Connection::class, 'dsn' => env('DB_DSN'), 'username' => env('DB_USERNAME'), 'password' => env('DB_PASSWORD'), 'charset' => env('DB_CHARSET'), 'tablePrefix' => env('DB_TABLE_PREFIX'), ], 'mailer' => [ 'class' => \yii\symfonymailer\Mailer::class, 'viewPath' => '@common/mail', // send all mails to a file by default. 'useFileTransport' => true ], ], ];