prestaconcept/PrestaSitemapBundle — pull request #4 by kostiklv (2012-09-19 12:06:39+00:00)
Title: Sitemap dumper & registering event listeners with tags

**Rationale:**
1. Generating sitemap on the fly, even with caching doesn't work when you have really a lot of URLs. So the sitemaps needs to be generated from console command, on some schedule.
2. If your site has different areas, you may need a different schedule for generating sitemaps of different parts ("sections") while maintaining one sitemap index file.
3. Registering event listeners in boot method of a bundle doesn't seem like a nice solution.

**Implementation:**
1. & 2. A console command which builds the sitemap files. The files are being written to a temporary location during generation and then moved to actual location at once (so if anything fails the old files stay). The command accepts optional 'section' argument. When passed it rebuilds only this section's files, and properly updates sitemap index file.
3. A simple Compiler pass which registers services tagged as `presta.sitemap.listener` in dispatcher, using `AddListenerService`, thus making the service lazy-loaded

See my changes in README.md for details

Sorry for actually two things in one PR.