public function setBasePath($path) { parent::setBasePath($path); Yii::setAlias('@app', $this->getBasePath()); }