From 793e9e5a66bb11e28b2861792a2e15019a7658f2 Mon Sep 17 00:00:00 2001 From: David Wolter Date: Mon, 23 Jan 2017 12:23:55 +0100 Subject: [PATCH] [FrameworkBundle] Configurable paths for validation files --- reference/configuration/framework.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 8f1fe9b091e..e163ac5e069 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -93,6 +93,8 @@ Configuration * :ref:`enable_annotations ` * `translation_domain`_ * `strict_email`_ + * `mapping`_ + * :ref:`paths ` * `annotations`_ * :ref:`cache ` * `file_cache_dir`_ @@ -1366,6 +1368,19 @@ If this option is enabled, the `egulias/email-validator`_ library will be used by the :doc:`/reference/constraints/Email` constraint validator. Otherwise, the validator uses a simple regular expression to validate email addresses. +mapping +....... + +.. _reference-validation-mapping-paths: + +paths +""""" + +**type**: ``array`` **default**: ``[]`` + +This option allows to define an array of paths with files or directories where +the component will look for additional validation files. + annotations ~~~~~~~~~~~ @@ -1637,6 +1652,8 @@ Full Default Configuration cache: ~ enable_annotations: false translation_domain: validators + mapping: + paths: [] # annotation configuration annotations: