Yii 2 advanced app environments usage fix
Merge pull request #1895 from creocoder/yii2-advanced-app-environment-fixes

Yii 2 advanced app environments fix