From bedd3c8e62819749ae4d04ab35add0dc21ece208 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 7 Nov 2019 04:52:17 +0100 Subject: [PATCH 1/1] Remove cannotBeEmpty() requirement on empty keys --- DependencyInjection/Configuration.php | 7 ------- 1 file changed, 7 deletions(-) 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() -- 2.41.1