@@ -2710,22 +2710,15 @@ metadata of the class. You can define an array of strings with the names of
2710
2710
several methods. In that case, all of them will be called in that order to load
2711
2711
the metadata.
2712
2712
2713
+ .. _reference-validation-email_validation_mode :
2714
+
2713
2715
email_validation_mode
2714
2716
.....................
2715
2717
2716
2718
**type **: ``string `` **default **: ``loose ``
2717
2719
2718
- Sets the default value for
2719
- :doc: `/reference/constraints/Email ` validator. The possible values are:
2720
-
2721
- * ``loose ``, it uses a simple regular expression to validate the address (it
2722
- checks that at least one ``@ `` character is present, etc.). This validation is
2723
- too simple and it's recommended to use the ``html5 `` validation instead;
2724
- * ``html5 ``, it validates email addresses using the same regular expression
2725
- defined in the HTML5 standard, making the backend validation consistent with
2726
- the one provided by browsers;
2727
- * ``strict ``, it uses the `egulias/email-validator `_ library (which you must
2728
- install separately) to validate the addresses according to the `RFC 5322 `_.
2720
+ Sets the default value for the
2721
+ :ref: `mode option of the Email validator <reference-constraint-email-mode >`.
2729
2722
2730
2723
.. _reference-validation-mapping :
2731
2724
@@ -3619,8 +3612,6 @@ to know their differences.
3619
3612
.. _`HTTP Host header attacks` : https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
3620
3613
.. _`Security Advisory Blog post` : https://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released#cve-2013-4752-request-gethost-poisoning
3621
3614
.. _`Doctrine Cache` : https://www.doctrine-project.org/projects/doctrine-cache/en/current/index.html
3622
- .. _`egulias/email-validator` : https://github.com/egulias/EmailValidator
3623
- .. _`RFC 5322` : https://tools.ietf.org/html/rfc5322
3624
3615
.. _`PhpStormProtocol` : https://github.com/aik099/PhpStormProtocol
3625
3616
.. _`phpstorm-url-handler` : https://github.com/sanduhrs/phpstorm-url-handler
3626
3617
.. _`blue/green deployment` : https://martinfowler.com/bliki/BlueGreenDeployment.html
0 commit comments