File tree Expand file tree Collapse file tree 1 file changed +40
-3
lines changed Expand file tree Collapse file tree 1 file changed +40
-3
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ Configuration
2121* `test `_
2222* `trusted_proxies `_
2323* `form `_
24- * enabled
24+ * :ref: ` enabled < form-enabled >`
2525* `csrf_protection `_
26- * enabled
27- * field_name
26+ * :ref: ` enabled < csrf-protection-enabled >`
27+ * ` field_name `_
2828* `session `_
2929 * `name `_
3030 * `cookie_lifetime `_
@@ -49,6 +49,7 @@ Configuration
4949 * :ref: `enabled <translator.enabled >`
5050 * `fallback `_
5151* `validation `_
52+ * :ref: `enabled <validation-enabled >`
5253 * `cache `_
5354 * `enable_annotations `_
5455 * `translation_domain `_
@@ -196,9 +197,35 @@ see :doc:`/cookbook/request/load_balancer_reverse_proxy`.
196197form
197198~~~~
198199
200+ .. _form-enabled :
201+
202+ enabled
203+ .......
204+
205+ **type **: ``boolean `` **default **: ``false ``
206+
207+ Whether or not to enable support for the Form component.
208+
199209csrf_protection
200210~~~~~~~~~~~~~~~
201211
212+ .. _csrf-protection-enabled :
213+
214+ enabled
215+ .......
216+
217+ **type **: ``boolean `` **default **: ``true `` if form support is enabled, ``false ``
218+ otherwise
219+
220+ This option can be used to disable CSRF protection of forms.
221+
222+ field_name
223+ ..........
224+
225+ **type **: ``string `` **default **: ``"_token" ``
226+
227+ The name of the hidden field used to render the :ref: `CSRF token <forms-csrf >`.
228+
202229session
203230~~~~~~~
204231
@@ -524,6 +551,16 @@ For more details, see :doc:`/book/translation`.
524551validation
525552~~~~~~~~~~
526553
554+ .. _validation-enabled :
555+
556+ enabled
557+ .......
558+
559+ **type **: ``boolean `` **default **: ``false ``, the option will be automatically
560+ enabled when :ref: `form support is enabled <form-enabled >`
561+
562+ Whether or not to enable validation support.
563+
527564cache
528565.....
529566
You can’t perform that action at this time.
0 commit comments