public function init() { parent::init(); $this->setHasher(Yii::createComponent($this->hasher)); $this->setTokenStorage(Yii::createComponent($this->tokenStorage)); $this->userModule = Yii::app()->getModule('user'); }