@@ -48,6 +48,11 @@ Configuration
48
48
* `translator `_
49
49
* :ref: `enabled <translator.enabled >`
50
50
* `fallback `_
51
+ * `validation `_
52
+ * `cache `_
53
+ * `enable_annotations `_
54
+ * `translation_domain `_
55
+ * `strict_email `_
51
56
52
57
secret
53
58
~~~~~~
@@ -517,6 +522,40 @@ This option is used when the translation key for the current locale wasn't found
517
522
518
523
For more details, see :doc: `/book/translation `.
519
524
525
+ validation
526
+ ~~~~~~~~~~
527
+
528
+ cache
529
+ .....
530
+
531
+ **type **: ``string ``
532
+
533
+ The implementation to be used to cache validation metadata.
534
+
535
+ enable_annotations
536
+ ..................
537
+
538
+ **type **: ``Boolean `` **default **: ``false ``
539
+
540
+ If this option is enabled, validation constraints can be defined using annotations.
541
+
542
+ translation_domain
543
+ ..................
544
+
545
+ **type **: ``string `` **default **: ``validators ``
546
+
547
+ The translation domain that is used to translation validation constraint
548
+ error messages.
549
+
550
+ strict_email
551
+ ............
552
+
553
+ **type **: ``Boolean `` **default **: ``false ``
554
+
555
+ If this option is enabled, the `egulias/email-validator `_ library will be
556
+ used by the :doc: `/reference/constraints/Email ` validator. Otherwise, the
557
+ validator uses a simple regular expression to validate email addresses.
558
+
520
559
Full default Configuration
521
560
--------------------------
522
561
@@ -646,3 +685,4 @@ Full default Configuration
646
685
647
686
.. _`protocol-relative` : http://tools.ietf.org/html/rfc3986#section-4.2
648
687
.. _`PhpStormOpener` : https://github.com/pinepain/PhpStormOpener
688
+ .. _`egulias/email-validator` : https://github.com/egulias/EmailValidator
0 commit comments