Changelog
phil/sitemap-bundleAll notable changes to phil/sitemap-bundle will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
0.1.1-alpha - 2026-11-11
Added
- The option
allow_localhost,falseby default, also the container parameterphil_sitemap.allow_localhost:true, in development and tests, lets the route pages, the served index andphil:sitemap:dumpbe onlocalhostor under.localhost.RouteUrlProvider,SitemapControllerandDumpSitemapsCommandtake it as their last argument.
Changed
- The package requires
phil/sitemap0.1.1, which reads the addresses byphil/url: a page onlocalhost, under.localhostor on an IP address is refused unlessallow_localhostallows the first two.
0.1.0-alpha - 2026-11-11
Added
RouteUrlProvider: thesitemapoption of routes —true, orpriority,changefreq,lastmodandsection—, localized routes ashreflangalternates;InvalidRouteOption.Sitemaps: everyUrlProvider, autoconfigured afterRouteUrlProvider, then thePopulateSitemapevent.PhilSitemapBundleand thephil_sitemapconfiguration:default_section,items_by_set,dump_directory,route_options,cache_max_ageanddefaults(priority,changefreq,lastmod).defaults.prioritytakes steps of 0.1,defaults.lastmod"now" or a date, anddefault_sectiona valid section: a value the pages could not take is refused when the container is built.SitemapController:/sitemap.xmland/sitemap.{name}.xml, inconfig/routes.php;/sitemap.{name}.xmlbuilds the one section the file belongs to, read bySitemap::sectionOfFile(). The served sitemap ispublicwith amax-ageofcache_max_age(3600 by default), carries the latestlastmodof its pages asLast-Modifiedand anETag, and answers304to a request that holds it.phil:sitemap:dump, with--gzipand--base-url. It builds the sitemap before touching a file, writes each file under a temporary name and renames it into place, the index last, then removes the files of the earlier dump it does not have: a provider that fails leaves the previous dump whole, and a write that fails is an error that keeps the previous index. It refuses to write an index underhttp://localhost, the router's address on the command line whenframework.router.default_uriis not set and no--base-urlis given.- The documentation in
doc/, indexed by the README, whose configuration example is labelled as one, apart from the defaults. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.