prestaconcept / PrestaSitemapBundle

A symfony bundle that provides tools to build a rich application sitemap. The main goals are : simple, no databases, various namespace (eg. google image), respect constraints etc.
MIT License
356 stars 102 forks source link

Docs need updating #100

Closed JRCrawford closed 8 years ago

JRCrawford commented 8 years ago

The example code found here: https://github.com/prestaconcept/PrestaSitemapBundle/blob/master/Resources/doc/5-Usage-Event_Listener.md is not valid for Symfony3.x and greater (see here)

Using the code: arguments: [@router] instead of arguments: ["@router"] will give the following error:

[Symfony\Component\Yaml\Exception\ParseException] The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 12 (near "arguments: [@router]").

yann-eugone commented 8 years ago

@JRCrawford can you make a PR for this ?