@@ -55,6 +55,8 @@ Configuration
55
55
* `cache `_
56
56
* `enable_annotations `_
57
57
* `translation_domain `_
58
+ * `strict_email `_
59
+ * `api `_
58
60
59
61
secret
60
62
~~~~~~
@@ -532,7 +534,7 @@ cache
532
534
**type **: ``string ``
533
535
534
536
This value is used to determine the service that is used to persist class
535
- metadata in a cache. The actual service name is built by prefix the configured
537
+ metadata in a cache. The actual service name is built by prefixing the configured
536
538
value with ``validator.mapping.cache. `` (e.g. if the value is ``apc ``, the
537
539
``validator.mapping.cache.apc `` service will be injected). The service has
538
540
to implement the :class: `Symfony\\ Component\\ Validator\\ Mapping\\ Cache\\ CacheInterface `.
@@ -552,6 +554,41 @@ translation_domain
552
554
The translation domain that is used when translating validation constraint
553
555
error messages.
554
556
557
+ strict_email
558
+ ............
559
+
560
+ .. versionadded :: 2.5
561
+ The ``strict_email `` option was introduced in Symfony 2.5.
562
+
563
+ **type **: ``Boolean `` **default **: ``false ``
564
+
565
+ If this option is enabled, the `egulias/email-validator `_ library will be
566
+ used by the :doc: `/reference/constraints/Email ` constraint validator. Otherwise,
567
+ the validator uses a simple regular expression to validate email addresses.
568
+
569
+ api
570
+ ...
571
+
572
+ .. versionadded :: 2.5
573
+ The ``api `` option was introduced in Symfony 2.5.
574
+
575
+ **type **: ``string ``
576
+
577
+ Starting with Symfony 2.5, the Validator component introduced a new validation
578
+ API. The ``api `` option is used to switch between the different implementations:
579
+
580
+ ``2.4 ``
581
+ Use the vaidation API that is compatible with older Symfony versions.
582
+
583
+ ``2.5 ``
584
+ Use the validation API introduced in Symfony 2.5.
585
+
586
+ ``2.5-bc `` or ``auto ``
587
+ If you omit a value or set the ``api `` option to ``2.5-bc `` or ``auto ``,
588
+ Symfony will use an API implementation that is compatible with both the
589
+ legacy implementation and the ``2.5 `` implementation. You have to use
590
+ PHP 5.3.9 or higher to be able to use this implementation.
591
+
555
592
Full default Configuration
556
593
--------------------------
557
594
0 commit comments