first commit
This commit is contained in:
16
environments/dev/common/config/codeception-local.php
Executable file
16
environments/dev/common/config/codeception-local.php
Executable file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
return yii\helpers\ArrayHelper::merge(
|
||||
require __DIR__ . '/main.php',
|
||||
require __DIR__ . '/main-local.php',
|
||||
require __DIR__ . '/test.php',
|
||||
require __DIR__ . '/test-local.php',
|
||||
[
|
||||
'components' => [
|
||||
'request' => [
|
||||
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
|
||||
'cookieValidationKey' => '',
|
||||
],
|
||||
],
|
||||
]
|
||||
);
|
43
environments/dev/common/config/main-local.php
Executable file
43
environments/dev/common/config/main-local.php
Executable file
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'components' => [
|
||||
'db' => [
|
||||
'class' => \yii\db\Connection::class,
|
||||
'dsn' => 'mysql:host=localhost;dbname=yii2advanced',
|
||||
'username' => 'root',
|
||||
'password' => '',
|
||||
'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
|
||||
],
|
||||
],
|
||||
];
|
4
environments/dev/common/config/params-local.php
Executable file
4
environments/dev/common/config/params-local.php
Executable file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
];
|
9
environments/dev/common/config/test-local.php
Executable file
9
environments/dev/common/config/test-local.php
Executable file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'components' => [
|
||||
'db' => [
|
||||
'dsn' => 'mysql:host=localhost;dbname=yii2advanced_test',
|
||||
],
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user