adapt to yii2 modification