浏览代码

[SecurityBundle] Fixed some config node to allow to unset them

Christophe Coevoet 14 年之前
父节点
当前提交
a6265e9337
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/Symfony/Bundle/SecurityBundle/DependencyInjection/Configuration.php

+ 2 - 0
src/Symfony/Bundle/SecurityBundle/DependencyInjection/Configuration.php

@@ -190,11 +190,13 @@ class Configuration
                 ->end()
             ->end()
             ->arrayNode('anonymous')
+                ->canBeUnset()
                 ->children()
                     ->scalarNode('key')->defaultValue(uniqid())->end()
                 ->end()
             ->end()
             ->arrayNode('switch_user')
+                ->canBeUnset()
                 ->children()
                     ->scalarNode('provider')->end()
                     ->scalarNode('parameter')->defaultValue('_switch_user')->end()