Skip to content

Commit c4a5661

Browse files
committed
feature #5060 Adds note on new validation files scanned in 2.7 (GromNaN)
This PR was merged into the 2.7 branch. Discussion ---------- Adds note on new validation files scanned in 2.7 | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes (symfony/symfony#13855) | Applies to | 2.7 | Fixed tickets | - Commits ------- 0967d07 Adds note on new validation files scanned in 2.7
2 parents adf5b90 + 0967d07 commit c4a5661

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+
As of Symfony 2.7, XML and Yaml constraint files located in the
108+
``Resources/config/validation`` sub-directory of a bundle are loaded. Prior
109+
to 2.7, only ``Resources/config/validation.yml`` (or ``.xml``) were loaded.
110+
106111
.. index::
107112
single: Validation; Using the validator
108113

0 commit comments

Comments
 (0)