From: Raphaƫl Gertz Date: Sun, 8 Aug 2021 17:44:44 +0000 (+0200) Subject: Change class to anonymous array to allow extra classes X-Git-Tag: 0.2.0~75 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/059c240bf49d573e9f1e7dc173292224de7c2b3c?ds=inline Change class to anonymous array to allow extra classes --- 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()