@@ -2620,22 +2620,15 @@ metadata of the class. You can define an array of strings with the names of
26202620several methods. In that case, all of them will be called in that order to load
26212621the metadata.
26222622
2623+ .. _reference-validation-email_validation_mode :
2624+
26232625email_validation_mode
26242626.....................
26252627
26262628**type **: ``string `` **default **: ``loose ``
26272629
2628- Sets the default value for
2629- :doc: `/reference/constraints/Email ` validator. The possible values are:
2630-
2631- * ``loose ``, it uses a simple regular expression to validate the address (it
2632- checks that at least one ``@ `` character is present, etc.). This validation is
2633- too simple and it's recommended to use the ``html5 `` validation instead;
2634- * ``html5 ``, it validates email addresses using the same regular expression
2635- defined in the HTML5 standard, making the backend validation consistent with
2636- the one provided by browsers;
2637- * ``strict ``, it uses the `egulias/email-validator `_ library (which you must
2638- install separately) to validate the addresses according to the `RFC 5322 `_.
2630+ Sets the default value for the
2631+ :ref: `mode option of the Email validator <reference-constraint-email-mode >`.
26392632
26402633.. _reference-validation-mapping :
26412634
@@ -3506,8 +3499,6 @@ to know their differences.
35063499
35073500.. _`HTTP Host header attacks` : https://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html
35083501.. _`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
3509- .. _`egulias/email-validator` : https://github.com/egulias/EmailValidator
3510- .. _`RFC 5322` : https://tools.ietf.org/html/rfc5322
35113502.. _`PhpStormProtocol` : https://github.com/aik099/PhpStormProtocol
35123503.. _`phpstorm-url-handler` : https://github.com/sanduhrs/phpstorm-url-handler
35133504.. _`blue/green deployment` : https://martinfowler.com/bliki/BlueGreenDeployment.html
0 commit comments