8000
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 2ae4f34 commit 6790fb2Copy full SHA for 6790fb2
book/routing.rst
@@ -747,11 +747,9 @@ can be extended to have an almost infinite flexibility using ``conditions``:
747
xsi:schemaLocation="http://symfony.com/schema/routing
748
http://symfony.com/schema/routing/routing-1.0.xsd">
749
750
- <route id="contact"
751
- path="/contact"
752
- condition="context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'"
753
- >
+ <route id="contact" path="/contact">
754
<default key="_controller">AcmeDemoBundle:Main:contact</default>
+ <condition>context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'</condition>
755
</route>
756
</routes>
757
0 commit comments