X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/76b2ea7078f3a5dac1c2669d48dfe7551ebacaa2..672b4fcfd63c56a8804765103d17e2bf271af746:/DependencyInjection/Configuration.php diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index ade173f..1dc5166 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() @@ -234,7 +228,9 @@ class Configuration implements ConfigurationInterface { ->defaultValue($defaults['translate']) ->scalarPrototype()->end() ->end() + #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false) ->scalarNode('locales')->cannotBeEmpty()->defaultValue($defaults['locales'])->end() + #TODO: see if we can't prevent key normalisation with ->normalizeKeys(false) ->arrayNode('languages') ->treatNullLike([]) ->defaultValue($defaults['languages'])