Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion reference/constraints/Email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ cast to a string before being validated.
+----------------+---------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
+----------------+---------------------------------------------------------------------+
| Options | - `message`_ |
| Options | - `strict`_ |
| | - `message`_ |
| | - `checkMX`_ |
| | - `checkHost`_ |
+----------------+---------------------------------------------------------------------+
Expand Down Expand Up @@ -89,6 +90,17 @@ Basic Usage
Options
-------

strict
~~~~~~
.. versionadded:: 2.5
The ``strict`` option was introduced in Symfony 2.5.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be placed before the headline. So you get something like:

.. versionadded:: 2.5
    The ``strict`` option was introduced in Symfony 2.5.

strict


**type**: ``boolean`` **default**: ``false``

When false, the email will be validated against a simple RegularExpression.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer Regular Expression

If true, then the `EmailValidator <https://packagist.org/packages/egulias/email-validator>`_ library
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't notice this the first time, you should not put the URL inline. Do this: (also not the change of the text)

If true, then the `egulias/email-validator`_ library is required
to perform an RFC compilant validation.

.. at the end of the document
.. _EmailValidator: https://packagist.org/packages/egulias/email-validator

is required to perform an RFC compilant validation.

message
~~~~~~~

Expand Down