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?ds=inline;hp=7efd80b56c0c0106d16819ca9e4e88bf42f08a30 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()