Skip to content

Commit de47600

Browse files
committed
Merge branch 'http_method_override' of github.com:hacfi/symfony-docs into hacfi-http_method_override
Conflicts: reference/configuration/framework.rst
2 parents 87dd61e + d879786 commit de47600

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

reference/configuration/framework.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Configuration
1616
-------------
1717

1818
* `secret`_
19+
* `http_method_override`_
1920
* `ide`_
2021
* `test`_
2122
* `trusted_proxies`_
@@ -51,6 +52,21 @@ it's used for generating the CSRF tokens, but it could be used in any other
5152
context where having a unique string is useful. It becomes the service container
5253
parameter named ``kernel.secret``.
5354

55+
http_method_override
56+
~~~~~~~~~~~~~~~~~~~~
57+
58+
.. versionadded:: 2.3
59+
The ``http_method_override`` option is new in Symfony 2.3.
60+
61+
**type**: ``Boolean`` **default**: ``true``
62+
63+
This determines whether the ``_method`` request parameter is used as the intended
64+
HTTP method on POST requests. If enabled, the
65+
:method:`Request::enableHttpMethodParameterOverride <Symfony\\Component\\HttpFoundation\\Request::enableHttpMethodParameterOverride>`
66+
gets called automatically. It becomes the service container parameter named
67+
``kernel.http_method_override``. For more information, see
68+
:doc:`/cookbook/routing/method_parameters`.
69+
5470
ide
5571
~~~
5672

@@ -362,6 +378,7 @@ Full Default Configuration
362378
363379
framework:
364380
secret: ~
381+
http_method_override: true
365382
trusted_proxies: []
366383
ide: ~
367384
test: ~
@@ -387,7 +404,7 @@ Full Default Configuration
387404
profiler:
388405
enabled: false
389406
only_exceptions: false
390-
only_master_requests: false
407+
only_master_requests: false
391408
dsn: file:%kernel.cache_dir%/profiler
392409
username:
393410
password:

0 commit comments

Comments
 (0)