浏览代码

[SecurityBundle] simplified things

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

+ 1 - 1
src/Symfony/Bundle/SecurityBundle/DependencyInjection/Configuration.php

@@ -157,7 +157,7 @@ class Configuration
                         ->end()
                     ->end()
                     ->arrayNode('anonymous')
-                        ->scalarNode('key')->defaultValue(function () { return uniqid(); })->end()
+                        ->scalarNode('key')->defaultValue(uniqid())->end()
                     ->end()
                     ->arrayNode('switch_user')
                         ->scalarNode('provider')->end()