Closed
Description
or maybe I don't understand something.
The text says
"Despite the fact that these two routes have identical paths (/contact), the first route will match only GET requests and the second route will match only POST requests."
but the examples (annotations,yaml,xml,php) have "/news" and "/contact" and does not match the description.
Okay here in 2.2:
http://symfony.com/doc/2.2/book/routing.html#adding-http-method-requirements
It looks like something happened when annotations were added. I'm not familiar enough with the docs and where the example code block gets pulled in from.