Ejemplo n.º 1
0
 /**
  * @return Urlset
  */
 protected function collectSitemapItems()
 {
     $urlSet = new Urlset();
     foreach ($this->sitemapRegistrar->getAvailableModules() as $module) {
         foreach ($module->getUrls() as $sitemapItem) {
             $urlSet->addUrl($sitemapItem);
         }
     }
     return $urlSet;
 }
 /**
  * @param string $moduleName
  * @return bool
  */
 private function isAllowedModule($moduleName)
 {
     return array_key_exists($moduleName, $this->sitemapRegistrar->getAvailableModules());
 }