X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/a870c61c5c4f93e315fd8508ad76dc01e74ceb1f..70c72bba9ba343c0a642a4848d69613c99c6603b:/DependencyInjection/Configuration.php?ds=sidebyside diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index b22d973..4d2d3bf 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -138,12 +138,9 @@ class Configuration implements ConfigurationInterface { ->addDefaultsIfNotSet() ->children() ->arrayNode('class') - ->addDefaultsIfNotSet() - ->children() - ->scalarNode('group')->cannotBeEmpty()->defaultValue($defaults['class']['group'])->end() - ->scalarNode('civility')->cannotBeEmpty()->defaultValue($defaults['class']['civility'])->end() - ->scalarNode('user')->cannotBeEmpty()->defaultValue($defaults['class']['user'])->end() - ->end() + ->treatNullLike([]) + ->defaultValue($defaults['class']) + ->scalarPrototype()->end() ->end() ->arrayNode('default') ->addDefaultsIfNotSet()