I mean just set 'class' to CFormatter and then call Yii::createComponent()