protected function getFileBasePath() { if ($this->type == self::TYPE_APP) { return Yii::$app->basePath; } return Yii::$app->getModule($this->moduleName)->getBasePath(); }