rewrite type from library to yii2-extension