code: public function getBaseNamespace()
      {
          if (!empty($this->moduleSet) && isset(Yii::$app->extensions[$this->moduleSet])) {
              $bsClass = Yii::$app->extensions[$this->moduleSet]['bootstrap'];
              $bsReflector = new \ReflectionClass(new $bsClass());
  
              return $bsReflector->getNamespaceName();
          }
  
          return 'cascade\modules';
      }
docs: Get base namespace.
  
  @return [[@doctodo return_type:getBaseNamespace]] [[@doctodo return_description:getBaseNamespace]]