Skip to content

Document new framework option http_method_override #2355

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 1 commit into from
Mar 31, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Configuration
-------------

* `secret`_
* `http_method_override`_
* `ide`_
* `test`_
* `trust_proxy_headers`_
Expand Down Expand Up @@ -49,6 +50,21 @@ it's used for generating the CSRF tokens, but it could be used in any other
context where having a unique string is useful. It becomes the service container
parameter named ``kernel.secret``.

http_method_override
~~~~~~

.. versionadded:: 2.3
The ``http_method_override`` option is new in version 2.3

**type**: ``Boolean`` **default**: ``true``

This determines whether the '_method' request parameter is used as the intended
HTTP method on POST requests. If enabled, the
:method:`Request::enableHttpMethodParameterOverride <Symfony\\Component\\HttpFoundation\\Request::enableHttpMethodParameterOverride>`
gets called automatically. It becomes the service container parameter named
``kernel.http_method_override``. For more information, see
:doc:`/cookbook/routing/method_parameters`.

ide
~~~

Expand Down Expand Up @@ -379,6 +395,7 @@ Full Default Configuration
framework:
charset: ~
secret: ~
http_method_override: true
trust_proxy_headers: false
trusted_proxies: []
ide: ~
Expand All @@ -405,7 +422,7 @@ Full Default Configuration
profiler:
enabled: false
only_exceptions: false
only_master_requests: false
only_master_requests: false
dsn: file:%kernel.cache_dir%/profiler
username:
password:
Expand Down