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

View File

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