Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 002359f

Browse filesBrowse files
committed
feature #7407 [FrameworkBundle] Configurable paths for validation files (davewwww)
This PR was merged into the master branch. Discussion ---------- [FrameworkBundle] Configurable paths for validation files add doc for symfony/symfony#19086 Commits ------- 793e9e5 [FrameworkBundle] Configurable paths for validation files
2 parents 5e7b59d + 793e9e5 commit 002359f
Copy full SHA for 002359f

File tree

Expand file treeCollapse file tree

1 file changed

+17
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+17
-0
lines changed

‎reference/configuration/framework.rst

Copy file name to clipboardExpand all lines: reference/configuration/framework.rst
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Configuration
9393
* :ref:`enable_annotations <reference-validation-enable_annotations>`
9494
* `translation_domain`_
9595
* `strict_email`_
96+
* `mapping`_
97+
* :ref:`paths <reference-validation-mapping-paths>`
9698
* `annotations`_
9799
* :ref:`cache <reference-annotations-cache>`
98100
* `file_cache_dir`_
@@ -1366,6 +1368,19 @@ If this option is enabled, the `egulias/email-validator`_ library will be
13661368
used by the :doc:`/reference/constraints/Email` constraint validator. Otherwise,
13671369
the validator uses a simple regular expression to validate email addresses.
13681370

1371+
mapping
1372+
.......
1373+
1374+
.. _reference-validation-mapping-paths:
1375+
1376+
paths
1377+
"""""
1378+
1379+
**type**: ``array`` **default**: ``[]``
1380+
1381+
This option allows to define an array of paths with files or directories where
1382+
the component will look for additional validation files.
1383+
13691384
annotations
13701385
~~~~~~~~~~~
13711386

@@ -1639,6 +1654,8 @@ Full Default Configuration
16391654
cache: ~
16401655
enable_annotations: false
16411656
translation_domain: validators
1657+
mapping:
1658+
paths: []
16421659
16431660
# annotation configuration
16441661
annotations:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.