We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95243cd commit e918a6dCopy full SHA for e918a6d
book/routing.rst
@@ -758,11 +758,9 @@ can be extended to have an almost infinite flexibility using ``conditions``:
758
xsi:schemaLocation="http://symfony.com/schema/routing
759
http://symfony.com/schema/routing/routing-1.0.xsd">
760
761
- <route id="contact"
762
- path="/contact"
763
- condition="context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'"
764
- >
+ <route id="contact" path="/contact">
765
<default key="_controller">AcmeDemoBundle:Main:contact</default>
+ <condition>context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'</condition>
766
</route>
767
</routes>
768
0 commit comments