SitemapController
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
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
index
ResponseInterface
index()
Returns the configured sitemap as a cached file or a lazily generated XML response