@@ -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,44 @@ 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
+ This value is used to determine the service that is used to persist class
534
+ metadata in a cache. The actual service name is built by prefix the configured
535
+ value with ``validator.mapping.cache. `` (e.g. if the value is ``apc ``, the
536
+ ``validator.mapping.cache.apc `` service will be injected). The service has
537
+ to implement the :class: `Symfony\\ Component\\ Validator\\ Mapping\\ Cache\\ CacheInterface `.
538
+
539
+ enable_annotations
540
+ ..................
541
+
542
+ **type **: ``Boolean `` **default **: ``false ``
543
+
544
+ If this option is enabled, validation constraints can be defined using annotations.
545
+
546
+ translation_domain
547
+ ..................
548
+
549
+ **type **: ``string `` **default **: ``validators ``
550
+
551
+ The translation domain that is used when translating validation constraint
552
+ error messages.
553
+
554
+ strict_email
555
+ ............
556
+
557
+ **type **: ``Boolean `` **default **: ``false ``
558
+
559
+ If this option is enabled, the `egulias/email-validator `_ library will be
560
+ used by the :doc: `/reference/constraints/Email ` constraint validator. Otherwise,
561
+ the validator uses a simple regular expression to validate email addresses.
562
+
520
563
Full default Configuration
521
564
--------------------------
522
565
@@ -646,3 +689,4 @@ Full default Configuration
646
689
647
690
.. _`protocol-relative` : http://tools.ietf.org/html/rfc3986#section-4.2
648
691
.. _`PhpStormOpener` : https://github.com/pinepain/PhpStormOpener
692
+ .. _`egulias/email-validator` : https://github.com/egulias/EmailValidator
0 commit comments