protected function getFileNamespace() { if ($this->type == self::TYPE_APP) { return 'app\\blocks'; } return Yii::$app->getModule($this->moduleName)->getNamespace() . '\\blocks'; }