From: Raphaƫl Gertz Date: Wed, 15 Sep 2021 15:34:49 +0000 (+0200) Subject: Transform default scalar prototype in variable prototype to allow custom defaults X-Git-Tag: 0.2.0 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/576070fab9876583244210b655602ff14de36095 Transform default scalar prototype in variable prototype to allow custom defaults --- diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index ade173f..3ceb22f 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -148,15 +148,9 @@ class Configuration implements ConfigurationInterface { ->scalarPrototype()->end() ->end() ->arrayNode('default') - ->addDefaultsIfNotSet() - ->children() - ->scalarNode('civility')->cannotBeEmpty()->defaultValue($defaults['default']['civility'])->end() - ->arrayNode('group') - ->treatNullLike([]) - ->defaultValue($defaults['default']['group']) - ->scalarPrototype()->end() - ->end() - ->end() + ->treatNullLike([]) + ->defaultValue($defaults['default']) + ->variablePrototype()->end() ->end() ->arrayNode('route') ->addDefaultsIfNotSet()