Feature: Set defaults values for add_address configuration

The default values were not set at the root of the array config. This create a default value to the array config
This commit is contained in:
Julien Fastré 2022-12-22 11:21:05 +01:00
parent 7a1cc9b076
commit 1bc7221315
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -277,7 +277,7 @@ class Configuration implements ConfigurationInterface
;
$rootNode->children()
->arrayNode('add_address')->children()
->arrayNode('add_address')->addDefaultsIfNotSet()->children()
->scalarNode('default_country')->cannotBeEmpty()->defaultValue('BE')->end()
->arrayNode('map_center')->children()
->scalarNode('x')->cannotBeEmpty()->defaultValue(50.8443)->end()