src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapDumper.php
private function dumpProviderSitemap($alias, PortalInformation $portalInformation, $scheme)
    {
        $maxPage = $this->sitemapProviderPool->getProvider($alias)->getMaxPage();
        for ($page = 1; $page <= $maxPage; ++$page) {
            $sitemap = $this->sitemapRenderer->renderSitemap(
                $alias,
                $page,
                $portalInformation->getLocale(),
                $portalInformation->getPortal(),
                $portalInformation->getHost(),
                $scheme
            );

            $this->dumpFile(
                $this->getDumpPath(
                    $scheme,
                    $portalInformation->getWebspaceKey(),
                    $portalInformation->getLocale(),
                    $portalInformation->getHost(),
                    $alias,
                    $page
                ),
                $sitemap
            );
        }
    }
private function dumpProviderSitemap($alias, PortalInformation $portalInformation, $scheme)
    {
        $maxPage = $this->sitemapProviderPool->getProvider($alias)->getMaxPage();
        for ($page = 1; $page <= $maxPage; ++$page) {
            $sitemap = $this->sitemapRenderer->renderSitemap(
                $alias,
                $page,
                $portalInformation->getLocale(),
                $portalInformation->getPortal(),
                $portalInformation->getHost(),
                $scheme
            );

            $this->dumpFile(
                $this->getDumpPath(
                    $scheme,
                    $portalInformation->getWebspaceKey(),
                    $portalInformation->getLocale(),
                    $portalInformation->getHost(),
                    $alias,
                    $page
                ),
                $sitemap
            );
        }
    }
private function dumpProviderSitemap ( $ alias , PortalInformation $ portalInformation , $ scheme ) { $ maxPage = $ this -> sitemapProviderPool -> getProvider ( $ alias ) -> getMaxPage ( ) ; for ( $ page = 1 ; $ page <= $ maxPage ; ++ $ page ) { $ sitemap = $ this -> sitemapRenderer -> renderSitemap ( $ alias , $ page , $ portalInformation -> getLocale ( ) , $ portalInformation -> getPortal ( ) , $ portalInformation -> getHost ( ) , $ scheme ) ; $ this -> dumpFile ( $ this -> getDumpPath ( $ scheme , $ portalInformation -> getWebspaceKey ( ) , $ portalInformation -> getLocale ( ) , $ portalInformation -> getHost ( ) , $ alias , $ page ) , $ sitemap ) ; } }
Render sitemap for provider.

@param string $alias
@param PortalInformation $portalInformation
@param string $scheme
Render sitemap for provider .