Skip to content
Closed
Changes from all 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
2 changes: 1 addition & 1 deletion cookbook/validation/custom_constraint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Constraint Validators with Dependencies
If your constraint validator has dependencies, such as a database connection,
it will need to be configured as a service in the Dependency Injection
Container. This service must include the ``validator.constraint_validator``
tag and may include an ``alias`` attribute:
tag and *MUST* include an ``alias`` attribute:

Choose a reason for hiding this comment

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

I'd add that alias must match what is returned by the validateBy method and that it must not necessarily match the service id

.. configuration-block::

Expand Down