Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[2.2] add http_method_override option to ease setup #7202

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

Closed

Conversation

havvg
Copy link
Contributor

@havvg havvg commented Feb 27, 2013

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

@@ -52,6 +52,7 @@ public function getConfigTreeBuilder()
->end()
->end()
->scalarNode('secret')->end()
->scalarNode('http_method_override')->defaultFalse()->end()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

->info() ?

@@ -52,6 +52,10 @@ public function getConfigTreeBuilder()
->end()
->end()
->scalarNode('secret')->end()
->scalarNode('http_method_override')
->info("Set true to enable support for the '_method' request parameter to determine the intended HTTP method on POST requests.")
->defaultFalse()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would set it to true by default (as this is what is done in the Symfony Standard Edition).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed.

@fabpot fabpot closed this in ea25267 Mar 7, 2013
@havvg havvg deleted the feature/config-http_method_override branch March 7, 2013 08:09
@mweimerskirch
Copy link
Contributor

@fabpot IMHO this would be useful in 2.2 as well (without the last commit, leaving the default to false).

@fabpot
Copy link
Member

fabpot commented Mar 8, 2013

I agree but in 2.2, just use Request::enableHttpMethodOverride() in your front controller.

Being strict about what goes in which release is more and more important IMO.

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

Successfully merging this pull request may close these issues.

4 participants