src/Zicht/Bundle/UrlBundle/Controller/SitemapController.php
public function sitemapAction(Request $request)
    {
        $urls = $this->get('zicht_url.sitemap_provider')->all($this->get('security.authorization_checker'));

        return new Response(
            $this->renderView('ZichtUrlBundle:Sitemap:sitemap.xml.twig', ['urls' => $urls]),
            200,
            [
                'content-type' => 'text/xml'
            ]
        );
    }
public function sitemapAction(Request $request)
    {
        $urls = $this->get('zicht_url.sitemap_provider')->all($this->get('security.authorization_checker'));

        return new Response(
            $this->renderView('ZichtUrlBundle:Sitemap:sitemap.xml.twig', ['urls' => $urls]),
            200,
            [
                'content-type' => 'text/xml'
            ]
        );
    }
public function sitemapAction ( Request $ request ) { $ urls = $ this -> get ( 'zicht_url.sitemap_provider' ) -> all ( $ this -> get ( 'security.authorization_checker' ) ) ; return new Response ( $ this -> renderView ( 'ZichtUrlBundle:Sitemap:sitemap.xml.twig' , [ 'urls' => $ urls ] ) , 200 , [ 'content-type' => 'text/xml' ] ) ; }
Render basic sitemap from all database urls

@param Request $request
@return Response

@Route("/sitemap.{_format}", defaults={"_format": "xml"})
Render basic sitemap from all database urls