File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Configuration
16
16
-------------
17
17
18
18
* `secret `_
19
+ * `http_method_override `_
19
20
* `ide `_
20
21
* `test `_
21
22
* `trusted_proxies `_
@@ -51,6 +52,21 @@ it's used for generating the CSRF tokens, but it could be used in any other
51
52
context where having a unique string is useful. It becomes the service container
52
53
parameter named ``kernel.secret ``.
53
54
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
+
54
70
ide
55
71
~~~
56
72
@@ -362,6 +378,7 @@ Full Default Configuration
362
378
363
379
framework :
364
380
secret : ~
381
+ http_method_override : true
365
382
trusted_proxies : []
366
383
ide : ~
367
384
test : ~
@@ -387,7 +404,7 @@ Full Default Configuration
387
404
profiler :
388
405
enabled : false
389
406
only_exceptions : false
390
- only_master_requests : false
407
+ only_master_requests : false
391
408
dsn : file:%kernel.cache_dir%/profiler
392
409
username :
393
410
password :
You can’t perform that action at this time.
0 commit comments