Skip to content

Commit 2f29f7a

Browse files
committed
Reword
1 parent bc83185 commit 2f29f7a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

validation.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ So far, this is just an ordinary class that serves some purpose inside your
4343
application. The goal of validation is to tell you if the data
4444
of an object is valid. For this to work, you'll configure a list of rules
4545
(called :ref:`constraints <validation-constraints>`) that the object must
46-
follow in order to be valid. These rules can be specified via a number of
47-
different formats (YAML, XML, annotations, or PHP).
46+
follow in order to be valid. These rules are usually defined using PHP code or
47+
annotations but they can also be defined as a ``validation.yaml`` or
48+
``validation.xml`` file inside the ``config/validator/`` directory:
4849

4950
For example, to guarantee that the ``$name`` property is not empty, add the
5051
following:
@@ -113,11 +114,6 @@ following:
113114
Protected and private properties can also be validated, as well as "getter"
114115
methods (see :ref:`validator-constraint-targets`).
115116

116-
.. caution::
117-
118-
If you're using the YAML or XML formats, the ``config/validator`` folder
119-
structure should be respected !
120-
121117
.. index::
122118
single: Validation; Using the validator
123119

0 commit comments

Comments
 (0)