improved config

It is better to use files here. Similar to commit in `yii2-advanced` - https://github.com/yiisoft/yii2/commit/9da28421ee431f6ce64915f1794e31876924ee3a