Skip to content

sf2.2 note: _method override disabled by default #2189

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

Merged
merged 2 commits into from
Jan 31, 2013
Merged

sf2.2 note: _method override disabled by default #2189

merged 2 commits into from
Jan 31, 2013

Conversation

mattattui
Copy link
Contributor

Q A
Doc fix? yes
New docs? no
Applies to 2.2
Fixed tickets n/a?

Just added a short note explaining that the _method hidden field method of overriding the HTTP method (method method method) is now disabled by default in Symfony 2.2, and must be explicitly enabled.

@@ -4,6 +4,11 @@
How to use HTTP Methods beyond GET and POST in Routes
=====================================================

.. versionadded:: 2.2
This functionality is disabled by default in Symfony 2.2. To enable it,
you must call ``Request::enableHttpMethodParameterOverride()`` before you
Copy link
Member

Choose a reason for hiding this comment

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

I prefer to make use of the api link roles:

you must call :method:`Request::enableHttpMethodParameterOverride <Symfony\\Component\\HttpFoundation\\Request::enableHttpMethodParameterOverride>` before you

@mattattui
Copy link
Contributor Author

Thanks @wouterj, you're quite right. I did scout around for similar markup in other versionadded tips and didn't spot anything.

weaverryan added a commit that referenced this pull request Jan 31, 2013
sf2.2 note: _method override disabled by default
@weaverryan weaverryan merged commit 2b6c443 into symfony:master Jan 31, 2013
@weaverryan
Copy link
Member

Nice find and great PR Matt - thanks a bunch!

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.

3 participants