From 059c240bf49d573e9f1e7dc173292224de7c2b3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 8 Aug 2021 19:44:44 +0200 Subject: [PATCH 1/1] Change class to anonymous array to allow extra classes --- DependencyInjection/Configuration.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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() -- 2.41.1