Skip to content

Commit 4dc452c

Browse files
committed
minor #16994 [FrameworkBundle] Adding class constants (ThomasLandauer)
This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] Adding class constants Commits ------- 08b1bd4 Adding class constants
2 parents 015c395 + 08b1bd4 commit 4dc452c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

reference/constraints/Email.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ This option defines the pattern used to validate the email address. Valid values
135135
* ``strict`` uses the `egulias/email-validator`_ library (which you must
136136
install separately) for validation according to `RFC 5322`_.
137137

138+
You can also use the class constants of :class:`Symfony\\Component\\Validator\\Constraints\\Email`,
139+
e.g. ``Email::VALIDATION_MODE_STRICT``.
140+
138141
The default value used by this option is set in the
139142
:ref:`framework.validation.email_validation_mode <reference-validation-email_validation_mode>`
140143
configuration option.

0 commit comments

Comments
 (0)