/**
  * Dump the single error pages for a siteAlias given by $errorNode
  * 
  * @param ReadNodeInterface $errorNode
  * @param int               $aliasId
  * @param string            $siteId
  *
  * @return string
  */
 protected function dumpErrorPageForSiteAlias(ReadNodeInterface $errorNode, $aliasId, $siteId)
 {
     $url = $this->router->generate('open_orchestra_base_node_preview', array('token' => $this->encrypter->encrypt($errorNode->getId()), 'aliasId' => $aliasId));
     $filepath = $siteId . '/alias-' . $aliasId . '/' . $errorNode->getName() . '.html';
     $crawler = $this->client->request('GET', $url);
     $this->filesystem->dumpFile('web/' . $filepath, $crawler->html());
     return $filepath;
 }
 /**
  * Generate sitemap informations for $node of $site
  * 
  * @param ReadNodeInterface $node
  * @param ReadSiteInterface $site
  * 
  * @return array
  */
 protected function generateNodeInfos(ReadNodeInterface $node, ReadSiteInterface $site)
 {
     $nodeInfos = array();
     if (is_null($node->getRole())) {
         try {
             $nodeInfos = array('loc' => $this->router->generate($site->getMainAliasId() . '_' . $node->getId(), array(), UrlGeneratorInterface::ABSOLUTE_URL), 'lastmod' => $this->getLastModificationDate($node), 'changefreq' => $this->getChangeFrequency($node, $site), 'priority' => $this->getPriority($node, $site));
         } catch (MissingMandatoryParametersException $e) {
         }
     }
     return $nodeInfos;
 }