@@ -48,6 +48,10 @@ Configuration
48
48
* `translator `_
49
49
* :ref: `enabled <translator.enabled >`
50
50
* `fallback `_
51
+ * `validation `_
52
+ * `cache `_
53
+ * `enable_annotations `_
54
+ * `translation_domain `_
51
55
52
56
secret
53
57
~~~~~~
@@ -517,6 +521,35 @@ This option is used when the translation key for the current locale wasn't found
517
521
518
522
For more details, see :doc: `/book/translation `.
519
523
524
+ validation
525
+ ~~~~~~~~~~
526
+
527
+ cache
528
+ .....
529
+
530
+ **type **: ``string ``
531
+
532
+ This value is used to determine the service that is used to persist class
533
+ metadata in a cache. The actual service name is built by prefix the configured
534
+ value with ``validator.mapping.cache. `` (e.g. if the value is ``apc ``, the
535
+ ``validator.mapping.cache.apc `` service will be injected). The service has
536
+ to implement the :class: `Symfony\\ Component\\ Validator\\ Mapping\\ Cache\\ CacheInterface `.
537
+
538
+ enable_annotations
539
+ ..................
540
+
541
+ **type **: ``Boolean `` **default **: ``false ``
542
+
543
+ If this option is enabled, validation constraints can be defined using annotations.
544
+
545
+ translation_domain
546
+ ..................
547
+
548
+ **type **: ``string `` **default **: ``validators ``
549
+
550
+ The translation domain that is used when translating validation constraint
551
+ error messages.
552
+
520
553
Full default Configuration
521
554
--------------------------
522
555
@@ -646,3 +679,4 @@ Full default Configuration
646
679
647
680
.. _`protocol-relative` : http://tools.ietf.org/html/rfc3986#section-4.2
648
681
.. _`PhpStormOpener` : https://github.com/pinepain/PhpStormOpener
682
+ .. _`egulias/email-validator` : https://github.com/egulias/EmailValidator
0 commit comments