Skip to content

Commit

Permalink
feature symfony#5060 Adds note on new validation files scanned in 2.7…
Browse files Browse the repository at this point in the history
… (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
  • Loading branch information
wouterj committed Apr 2, 2015
2 parents adf5b90 + 0967d07 commit c4a5661
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ following:
Protected and private properties can also be validated, as well as "getter"
methods (see :ref:`validator-constraint-targets`).

.. versionadded:: 2.7
As of Symfony 2.7, XML and Yaml constraint files located in the
``Resources/config/validation`` sub-directory of a bundle are loaded. Prior
to 2.7, only ``Resources/config/validation.yml`` (or ``.xml``) were loaded.

.. index::
single: Validation; Using the validator

Expand Down

0 comments on commit c4a5661

Please sign in to comment.