File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -747,11 +747,9 @@ can be extended to have an almost infinite flexibility using ``conditions``:
747
747
xsi : schemaLocation =" http://symfony.com/schema/routing
748
748
<
79B0
code class="diff-text syntax-highlighted-line"> http://symfony.com/schema/routing/routing-1.0.xsd" >
749
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
- >
750
+ <route id =" contact" path =" /contact" >
754
751
<default key =" _controller" >AcmeDemoBundle:Main:contact</default >
752
+ <condition >context.getMethod() in ['GET', 'HEAD'] and request.headers.get('User-Agent') matches '/firefox/i'</condition >
755
753
</route >
756
754
</routes >
757
755
You can’t perform that action at this time.
0 commit comments