Skip to content

Examples don't match text, in routing chapter, section "Adding HTTP Method Requirements" #5583

Closed
@toddkaufmann

Description

@toddkaufmann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RoutingactionableClear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)hasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions