Skip to content

Commit 08b1bd4

Browse files
Adding class constants
1 parent 77f2b79 commit 08b1bd4

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)