Skip to content

Updated default validation mapping directory #12982

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
Feb 19, 2020
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
8 changes: 4 additions & 4 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@ mapping
paths
"""""

**type**: ``array`` **default**: ``[]``
**type**: ``array`` **default**: ``['config/validation/']``

This option allows to define an array of paths with files or directories where
the component will look for additional validation files:
Expand All @@ -2394,7 +2394,7 @@ the component will look for additional validation files:
validation:
mapping:
paths:
- "%kernel.project_dir%/validation/"
- "%kernel.project_dir%/config/validation/"

.. code-block:: xml

Expand All @@ -2410,7 +2410,7 @@ the component will look for additional validation files:
<framework:config>
<framework:validation>
<framework:mapping>
<framework:path>%kernel.project_dir%/validation</framework:path>
<framework:path>%kernel.project_dir%/config/validation/</framework:path>
</framework:mapping>
</framework:validation>
</framework:config>
Expand All @@ -2423,7 +2423,7 @@ the component will look for additional validation files:
'validation' => [
'mapping' => [
'paths' => [
'%kernel.project_dir%/validation',
'%kernel.project_dir%/config/validation/',
],
],
],
Expand Down