From 0967d07f53bdafb5104c4998f0ccb16c0db84c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Thu, 5 Mar 2015 23:24:52 +0100 Subject: [PATCH] Adds note on new validation files scanned in 2.7 --- book/validation.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/book/validation.rst b/book/validation.rst index f3b39aad6ea..2ab38090cde 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -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