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

Skip to content

Commit d879786

Browse files
committed
Document new framework option http_method_override
1 parent f3c431f commit d879786

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
* `trust_proxy_headers`_
@@ -49,6 +50,21 @@ it's used for generating the CSRF tokens, but it could be used in any other
4950
context where having a unique string is useful. It becomes the service container
5051
parameter named ``kernel.secret``.
5152

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

@@ -379,6 +395,7 @@ Full Default Configuration
379395
framework:
380396
charset: ~
381397
secret: ~
398+
http_method_override: true
382399
trust_proxy_headers: false
383400
trusted_proxies: []
384401
ide: ~
@@ -405,7 +422,7 @@ Full Default Configuration
405422
profiler:
406423
enabled: false
407424
only_exceptions: false
408-
only_master_requests: false
425+
only_master_requests: false
409426
dsn: file:%kernel.cache_dir%/profiler
410427
username:
411428
password:

0 commit comments

Comments
 (0)