From: Raphaƫl Gertz Date: Thu, 7 Nov 2019 03:52:17 +0000 (+0100) Subject: Remove cannotBeEmpty() requirement on empty keys X-Git-Tag: 0.1.0~8 X-Git-Url: https://git.rapsys.eu/userbundle/commitdiff_plain/bedd3c8e62819749ae4d04ab35add0dc21ece208 Remove cannotBeEmpty() requirement on empty keys --- diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index b02524c..f261fc0 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -101,7 +101,6 @@ class Configuration implements ConfigurationInterface { ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end() ->scalarNode('home_name')->cannotBeEmpty()->defaultValue($defaults['contact']['home_name'])->end() ->arrayNode('home_args') - ->cannotBeEmpty() ->treatNullLike($defaults['contact']['home_args']) ->defaultValue($defaults['contact']['home_args']) ->scalarPrototype()->end() @@ -113,7 +112,6 @@ class Configuration implements ConfigurationInterface { ->children() ->scalarNode('template')->cannotBeEmpty()->defaultValue($defaults['login']['template'])->end() ->arrayNode('context') - ->cannotBeEmpty() ->treatNullLike(array()) ->defaultValue($defaults['login']['context']) ->scalarPrototype()->end() @@ -132,7 +130,6 @@ class Configuration implements ConfigurationInterface { ->end() ->scalarNode('template')->cannotBeEmpty()->defaultValue($defaults['register']['template'])->end() ->arrayNode('context') - ->cannotBeEmpty() ->treatNullLike($defaults['register']['context']) ->defaultValue($defaults['register']['context']) ->scalarPrototype()->end() @@ -151,14 +148,12 @@ class Configuration implements ConfigurationInterface { ->end() ->scalarNode('url_name')->cannotBeEmpty()->defaultValue($defaults['recover']['url_name'])->end() ->arrayNode('url_args') - ->cannotBeEmpty() ->treatNullLike($defaults['recover']['url_args']) ->defaultValue($defaults['recover']['url_args']) ->scalarPrototype()->end() ->end() ->scalarNode('template')->cannotBeEmpty()->defaultValue($defaults['recover']['template'])->end() ->arrayNode('context') - ->cannotBeEmpty() ->treatNullLike(array()) ->defaultValue($defaults['recover']['context']) ->scalarPrototype()->end() @@ -177,14 +172,12 @@ class Configuration implements ConfigurationInterface { ->end() ->scalarNode('url_name')->cannotBeEmpty()->defaultValue($defaults['recover']['url_name'])->end() ->arrayNode('url_args') - ->cannotBeEmpty() ->treatNullLike($defaults['recover']['url_args']) ->defaultValue($defaults['recover']['url_args']) ->scalarPrototype()->end() ->end() ->scalarNode('template')->cannotBeEmpty()->defaultValue($defaults['recover']['template'])->end() ->arrayNode('context') - ->cannotBeEmpty() ->treatNullLike(array()) ->defaultValue($defaults['recover']['context']) ->scalarPrototype()->end()