final class SitemapController (View source)

Serves cached and generated sitemaps through bounded response body streams

Methods

__construct(SitemapConfig $config, SitemapGenerator $generator, ApplicationContext $context, Responses $responses)

Initializes sitemap delivery with configuration, generation, paths and response factories

ResponseInterface
index()

Returns the configured sitemap as a cached file or a lazily generated XML response

ResponseInterface

Details

__construct

__construct(SitemapConfig $config, SitemapGenerator $generator, ApplicationContext $context, Responses $responses)

Initializes sitemap delivery with configuration, generation, paths and response factories

Parameters

SitemapConfig $config
SitemapGenerator $generator
ApplicationContext $context
Responses $responses

index

ResponseInterface index()

Returns the configured sitemap as a cached file or a lazily generated XML response

Return Value

ResponseInterface