Skip to content

Commit a669163

Browse files
committed
minor #34887 [FrameworkBundle] Add info & example to auto_mapping config (ogizanagi)
This PR was merged into the 4.3 branch. Discussion ---------- [FrameworkBundle] Add info & example to auto_mapping config | Q | A | ------------- | --- | Branch? | 4.3 <!-- see below --> | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | N/A <!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | N/A Backport part of #34707 and add example. Commits ------- 8eb29a7b73 [FrameworkBundle] Add info & example to auto_mapping config
2 parents 798cef5 + adb7faa commit a669163

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

DependencyInjection/Configuration.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,11 @@ private function addValidationSection(ArrayNodeDefinition $rootNode)
855855
->end()
856856
->end()
857857
->arrayNode('auto_mapping')
858+
->info('A collection of namespaces for which auto-mapping will be enabled.')
859+
->example([
860+
'App\\Entity\\' => [],
861+
'App\\WithSpecificLoaders\\' => ['validator.property_info_loader'],
862+
])
858863
->useAttributeAsKey('namespace')
859864
->normalizeKeys(false)
860865
->beforeNormalization()

0 commit comments

Comments
 (0)