Browse Source

Removed cannotBeEmpty() condition on persist_filters

The default value of this setting is false. If you actually put

    persist_filters: false

in your YML file you get an error due to the ``cannotBeEmpty()`` condition, which I think is not needed here.
Christian Morgan 11 năm trước cách đây
mục cha
commit
e1b4cbf138
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      DependencyInjection/Configuration.php

+ 1 - 1
DependencyInjection/Configuration.php

@@ -170,7 +170,7 @@ class Configuration implements ConfigurationInterface
                     ->end()
                 ->end()
 
-                ->scalarNode('persist_filters')->defaultValue(false)->cannotBeEmpty()->end()
+                ->scalarNode('persist_filters')->defaultValue(false)->end()
 
             ->end()
         ->end();