@@ -2710,22 +2710,15 @@ metadata of the class. You can define an array of strings with the names of
27102710several methods. In that case, all of them will be called in that order to load
27112711the metadata.
27122712
2713+ .. _reference-validation-email_validation_mode :
2714+
27132715email_validation_mode
27142716.....................
27152717
27162718**type **: ``string `` **default **: ``loose ``
27172719
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 >`.
27292722
27302723.. _reference-validation-mapping :
27312724
@@ -3619,8 +3612,6 @@ to know their differences.
36193612.. _`HTTP Host header attacks` : https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
36203613.. _`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
36213614.. _`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
36243615.. _`PhpStormProtocol` : https://github.com/aik099/PhpStormProtocol
36253616.. _`phpstorm-url-handler` : https://github.com/sanduhrs/phpstorm-url-handler
36263617.. _`blue/green deployment` : https://martinfowler.com/bliki/BlueGreenDeployment.html
0 commit comments