new-support.webeffector.ru/environments/dev/common/config/main-local.php

44 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2024-06-13 17:07:58 +03:00
<?php
return [
'components' => [
'db' => [
'class' => \yii\db\Connection::class,
'dsn' => 'mysql:host=mysql-web;dbname=web',
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
],
'mailer' => [
'class' => \yii\symfonymailer\Mailer::class,
'viewPath' => '@common/mail',
// send all mails to a file by default.
'useFileTransport' => true,
// You have to set
//
// 'useFileTransport' => false,
//
// and configure a transport for the mailer to send real emails.
//
// SMTP server example:
// 'transport' => [
// 'scheme' => 'smtps',
// 'host' => '',
// 'username' => '',
// 'password' => '',
// 'port' => 465,
// 'dsn' => 'native://default',
// ],
//
// DSN example:
// 'transport' => [
// 'dsn' => 'smtp://user:pass@smtp.example.com:25',
// ],
//
// See: https://symfony.com/doc/current/mailer.html#using-built-in-transports
// Or if you use a 3rd party service, see:
// https://symfony.com/doc/current/mailer.html#using-a-3rd-party-transport
],
],
];