From 576070fab9876583244210b655602ff14de36095 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 15 Sep 2021 17:34:49 +0200 Subject: [PATCH 1/1] Transform default scalar prototype in variable prototype to allow custom defaults --- DependencyInjection/Configuration.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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() -- 2.41.1