Fixed consistency of db-variable name in config files (#120)

This commit is contained in:
Andrey Subbota 2017-05-28 02:21:16 +04:00 committed by Alexander Makarov
parent 19b6143f05
commit 465c00a8ea
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
$params = require(__DIR__ . '/params.php'); $params = require(__DIR__ . '/params.php');
$dbParams = require(__DIR__ . '/test_db.php'); $db = require(__DIR__ . '/test_db.php');
/** /**
* Application configuration shared by all test types * Application configuration shared by all test types
@ -10,7 +10,7 @@ return [
'basePath' => dirname(__DIR__), 'basePath' => dirname(__DIR__),
'language' => 'en-US', 'language' => 'en-US',
'components' => [ 'components' => [
'db' => $dbParams, 'db' => $db,
'mailer' => [ 'mailer' => [
'useFileTransport' => true, 'useFileTransport' => true,
], ],

View File

@ -1,6 +1,7 @@
<?php <?php
$params = require(__DIR__ . '/params.php'); $params = require(__DIR__ . '/params.php');
$db = require(__DIR__ . '/db.php');
$config = [ $config = [
'id' => 'basic', 'id' => 'basic',
@ -37,7 +38,7 @@ $config = [
], ],
], ],
], ],
'db' => require(__DIR__ . '/db.php'), 'db' => $db,
/* /*
'urlManager' => [ 'urlManager' => [
'enablePrettyUrl' => true, 'enablePrettyUrl' => true,