From 0e6bb57f46243a8dda6901a9904631d1a42de2ac Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Wed, 29 Nov 2017 12:02:25 -0500 Subject: [PATCH] adding paths config for validation --- validation.rst | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/validation.rst b/validation.rst index 412676a908b..50322a025e6 100644 --- a/validation.rst +++ b/validation.rst @@ -108,10 +108,22 @@ following: } } -.. tip:: +Protected and private properties can also be validated, as well as "getter" +methods (see :ref:`validator-constraint-targets`). + +.. note:: + + If you want to store validation config as YAML or XML, you'll need to configure + the path: - Protected and private properties can also be validated, as well as "getter" - methods (see :ref:`validator-constraint-targets`). + .. code-block:: diff + + # config/packages/framework.yaml + framework: + # ... + validation: + mapping: + paths: ['%kernel.project_dir%/config/validator'] .. index:: single: Validation; Using the validator