diff --git a/book/routing.rst b/book/routing.rst index 6300fc69548..3607dc16b7c 100644 --- a/book/routing.rst +++ b/book/routing.rst @@ -747,11 +747,9 @@ can be extended to have an almost infinite flexibility using ``conditions``: xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd"> - + AcmeDemoBundle:Main:contact + context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'