diff --git a/apps/advanced/common/config/params.php b/apps/advanced/common/config/params.php index c378364..7b9a51a 100644 --- a/apps/advanced/common/config/params.php +++ b/apps/advanced/common/config/params.php @@ -20,9 +20,6 @@ return [ 'components.db' => [ 'class' => 'yii\db\Connection', - 'dsn' => 'mysql:host=localhost;dbname=yii2advanced', - 'username' => 'root', - 'password' => '', 'charset' => 'utf8', ], ]; diff --git a/apps/advanced/environments/dev/common/config/params-local.php b/apps/advanced/environments/dev/common/config/params-local.php index d0b9c34..47edec1 100644 --- a/apps/advanced/environments/dev/common/config/params-local.php +++ b/apps/advanced/environments/dev/common/config/params-local.php @@ -1,3 +1,8 @@ [ + 'dsn' => 'mysql:host=localhost;dbname=yii2advanced', + 'username' => 'root', + 'password' => '', + ], ]; diff --git a/apps/advanced/environments/prod/common/config/params-local.php b/apps/advanced/environments/prod/common/config/params-local.php index d0b9c34..47edec1 100644 --- a/apps/advanced/environments/prod/common/config/params-local.php +++ b/apps/advanced/environments/prod/common/config/params-local.php @@ -1,3 +1,8 @@ [ + 'dsn' => 'mysql:host=localhost;dbname=yii2advanced', + 'username' => 'root', + 'password' => '', + ], ];