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()