Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cookbook][Routing] & [Book][Routing] update "_method" to "methods" #621

Open
X13454 opened this issue Nov 27, 2014 · 0 comments
Open

[Cookbook][Routing] & [Book][Routing] update "_method" to "methods" #621

X13454 opened this issue Nov 27, 2014 · 0 comments

Comments

@X13454
Copy link

X13454 commented Nov 27, 2014

Hello,

Looking at English version of http://symfony.com/doc/master/book/routing.html#adding-http-method-requirements, (YAML tab) we have:

# app/config/routing.yml
contact:
    path:     /contact
    defaults: { _controller: AppBundle:Main:contact }
    methods:  [GET]

contact_process:
    path:     /contact
    defaults: { _controller: AppBundle:Main:processContact }
    methods:  [POST]

whereas in http://symfony.com/fr/doc/master/cookbook/routing/method_parameters.htm and http://symfony.com/fr/doc/master/book/routing.html#ajouter-des-conditions-requises-pour-la-methode-httpl, we have this semantic:

        _method:  GET
        _method:  PUT
       ...

It seems that the [methods] option was introduced in version 2.2 http://symfony.com/doc/2.2/book/routing.html#adding-http-method-requirements.

Should the http://symfony.com/fr/doc/master/cookbook/routing/method_parameters.html and http://symfony.com/fr/doc/master/book/routing.html#ajouter-des-conditions-requises-pour-la-methode-http be updated with the latest option, for consistency sake?

Kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant