PHP Class Sulu\Bundle\WebsiteBundle\Controller\SitemapController

Inheritance: extends WebsiteController
Afficher le fichier Open project: sulu/sulu

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

sitemapAction() public méthode

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

sitemapPaginatedAction() public méthode

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
Résultat Symfony\Component\HttpFoundation\Response