->
end() ->
end() ->
arrayNode('auto_mapping'
) ->
info('A collection of namespaces for which auto-mapping will be enabled by default, or null to opt-in with the EnableAutoMapping constraint.'
) ->
example([ 'App\\Entity\\' =>
[],
'App\\WithSpecificLoaders\\' =>
['validator.property_info_loader'
],
]) ->
useAttributeAsKey('namespace'
) ->
normalizeKeys(false
) ->
beforeNormalization() ->
ifArray() ->
then(function Darray
$values): array
{ foreach ($values as $k =>
$v) { if (isset($v['service'
])) { continue;
} if (isset($v['namespace'
])) { $values[$k]['services'
] =
[];
continue;
}