Skip to content

Commit

Permalink
Reworded a note about custom constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz authored and xabbuh committed Feb 28, 2017
1 parent 0607517 commit a9d59fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validation/custom_constraint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ load this service from the container.

.. note::

In earlier versions of Symfony, the tag required an ``alias`` key (usually set
to the class name). This is still allowed your constraint's ``validateBy()``
method can return this alias (instead of a class name).
In earlier versions of Symfony, the tag required an ``alias`` key (usually
set to the class name). This ``alias`` is now optional, but if you define
it, your constraint's ``validatedBy()`` method must return the same value.

Class Constraint Validator
~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit a9d59fd

Please sign in to comment.