yiisoft/yii2 — pull request #6663 by zelenin (2014-12-27 01:11:01+00:00)
Title: add setParams to init

Adds an interactive setting of params during init
Placeholder formats:
```{{nameOfValue}}``` or ```{{nameOfValue|defaultValue}}```

```php
[
'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host={{db.host|127.0.0.1}};dbname={{db.name}}',
'username' => '{{db.username|root}}',
'password' => '{{db.password}}',
'charset' => 'utf8',
]
],
];
```

init output:

```
set params in common/config/db-local.php
value of db.tablePrefix ():
value of db.host (127.0.0.1):
value of db.name: yii2-app
value of db.username: root
value of db.password:
set params in common/config/bootstrap-local.php
value of domain (dev.example.com):
```