From fdf1911c159bc2e92d9b81c83b02079fe630fa40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 3 Mar 2022 11:07:02 +0100 Subject: [PATCH] fix default config --- .../ChillBudgetBundle/DependencyInjection/Configuration.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillBudgetBundle/DependencyInjection/Configuration.php b/src/Bundle/ChillBudgetBundle/DependencyInjection/Configuration.php index fd7034f2d..a18e17ae6 100644 --- a/src/Bundle/ChillBudgetBundle/DependencyInjection/Configuration.php +++ b/src/Bundle/ChillBudgetBundle/DependencyInjection/Configuration.php @@ -30,7 +30,7 @@ class Configuration implements ConfigurationInterface ->children() // ressources - ->arrayNode('resources')->isRequired()->requiresAtLeastOneElement() + ->arrayNode('resources')->defaultValue([]) ->arrayPrototype() ->children() ->scalarNode('key')->isRequired()->cannotBeEmpty() @@ -52,7 +52,7 @@ class Configuration implements ConfigurationInterface ->end() ->end() ->end() - ->arrayNode('charges')->isRequired()->requiresAtLeastOneElement() + ->arrayNode('charges')->defaultValue([]) ->arrayPrototype() ->children() ->scalarNode('key')->isRequired()->cannotBeEmpty()