Skip to content

Commit 2f48289

Browse files
committed
Adds note on new validation files scanned in 2.7
1 parent d3192a7 commit 2f48289

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

book/validation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ following:
103103
Protected and private properties can also be validated, as well as "getter"
104104
methods (see :ref:`validator-constraint-targets`).
105105

106+
.. versionadded:: 2.7
107+
Since 2.7, XML and YAML constraint files located in the `Resource/config/validation/`
108+
sub-directory of a bundle are loaded. Previously, only `Resource/config/validation.xml`
109+
and `Resource/config/validation.yml` were allowed to register contraints.
110+
106111
.. index::
107112
single: Validation; Using the validator
108113

0 commit comments

Comments
 (0)