Skip to content

Adds note on new validation files scanned in 2.7 #5060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2015
Merged
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
Adds note on new validation files scanned in 2.7
  • Loading branch information
GromNaN committed Mar 8, 2015
commit 0967d07f53bdafb5104c4998f0ccb16c0db84c3b
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