yiisoft/yii2 — pull request #1895 by creocoder (2014-01-10 23:35:41+00:00)
Title: Yii 2 advanced app environments fix

Gii module make sence only for dev environment. Mistake was that gii module is accessible even in prod environment.