PHP Class Sulu\Bundle\WebsiteBundle\Controller\SitemapController

Inheritance: extends WebsiteController
Mostrar archivo Open project: sulu/sulu

Public Methods

Method Description
indexAction ( Request $request ) : Response Render sitemap-index of all available sitemap.xml files.
sitemapAction ( string $alias ) : Response Redirect to the first page of a single sitemap provider.
sitemapPaginatedAction ( Request $request, string $alias, integer $page ) : Response Render a single page for a single sitemap.xml provider.

Private Methods

Method Description
createBinaryFileResponse ( string $file ) : BinaryFileResponse Create a binary file response.
getDumpedIndexResponse ( Request $request ) : null | BinaryFileResponse Returns index-response if dumped file exists.
getDumpedSitemapResponse ( Request $request, string $alias, integer $page ) : null | BinaryFileResponse Returns index-response if dumped file exists.
setCacheLifetime ( Response $response ) : Response Set cache headers.

Method Details

indexAction() public method

If only one provider exists this provider will be rendered directly.
public indexAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

sitemapAction() public method

Redirect to the first page of a single sitemap provider.
public sitemapAction ( string $alias ) : Response
$alias string
return Symfony\Component\HttpFoundation\Response

sitemapPaginatedAction() public method

Render a single page for a single sitemap.xml provider.
public sitemapPaginatedAction ( Request $request, string $alias, integer $page ) : Response
$request Symfony\Component\HttpFoundation\Request
$alias string
$page integer
return Symfony\Component\HttpFoundation\Response