From 465c00a8eac7251ca2ae521c682ab6467ce1fe9e Mon Sep 17 00:00:00 2001 From: Andrey Subbota Date: Sun, 28 May 2017 02:21:16 +0400 Subject: [PATCH] Fixed consistency of db-variable name in config files (#120) --- config/test.php | 4 ++-- config/web.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/test.php b/config/test.php index a92c2fc..75201e5 100644 --- a/config/test.php +++ b/config/test.php @@ -1,6 +1,6 @@ dirname(__DIR__), 'language' => 'en-US', 'components' => [ - 'db' => $dbParams, + 'db' => $db, 'mailer' => [ 'useFileTransport' => true, ], diff --git a/config/web.php b/config/web.php index 2bc8561..e03d406 100644 --- a/config/web.php +++ b/config/web.php @@ -1,6 +1,7 @@ 'basic', @@ -37,7 +38,7 @@ $config = [ ], ], ], - 'db' => require(__DIR__ . '/db.php'), + 'db' => $db, /* 'urlManager' => [ 'enablePrettyUrl' => true,