yep, i was using it as here https://github.com/yiisoft/yii2/blob/master/apps/basic/config/web.php#L34