src/Sulu/Bundle/WebsiteBundle/Controller/SitemapController.php
public function indexAction(Request $request)
    {
        if (null !== ($response = $this->getDumpedIndexResponse($request))) {
            return $response;
        }

        $sitemap = $this->get('sulu_website.sitemap.xml_renderer')->renderIndex();
        if (!$sitemap) {
            $aliases = array_keys($this->get('sulu_website.sitemap.pool')->getProviders());

            return $this->sitemapPaginatedAction($request, reset($aliases), 1);
        }

        return $this->setCacheLifetime(new Response($sitemap));
    }
public function indexAction(Request $request)
    {
        if (null !== ($response = $this->getDumpedIndexResponse($request))) {
            return $response;
        }

        $sitemap = $this->get('sulu_website.sitemap.xml_renderer')->renderIndex();
        if (!$sitemap) {
            $aliases = array_keys($this->get('sulu_website.sitemap.pool')->getProviders());

            return $this->sitemapPaginatedAction($request, reset($aliases), 1);
        }

        return $this->setCacheLifetime(new Response($sitemap));
    }
public function indexAction ( Request $ request ) { if ( null !== ( $ response = $ this -> getDumpedIndexResponse ( $ request ) ) ) { return $ response ; } $ sitemap = $ this -> get ( 'sulu_website.sitemap.xml_renderer' ) -> renderIndex ( ) ; if ( ! $ sitemap ) { $ aliases = array_keys ( $ this -> get ( 'sulu_website.sitemap.pool' ) -> getProviders ( ) ) ; return $ this -> sitemapPaginatedAction ( $ request , reset ( $ aliases ) , 1 ) ; } return $ this -> setCacheLifetime ( new Response ( $ sitemap ) ) ; }
Render sitemap-index of all available sitemap.xml files.
If only one provider exists this provider will be rendered directly.

@param Request $request

@return \Symfony\Component\HttpFoundation\Response
Render sitemap - index of all available sitemap . xml files . If only one provider exists this provider will be rendered directly .