From 6790fb2294e92a25ce51b7f7800ee69c9fcd5bbf Mon Sep 17 00:00:00 2001 From: Xavier Briand Date: Wed, 9 Jul 2014 10:48:13 -0400 Subject: [PATCH] Fix xml route configuration for routing condition Current XML documentation doesn't respect routing schema (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/Loader/schema/routing/routing-1.0.xsd) --- book/routing.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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'