瀏覽代碼

[SecurityBundle] Adding the ignoreExtraFields option to the factories tree so that there aren't validation errors on all the other unknown fields.

Ryan Weaver 14 年之前
父節點
當前提交
a334a576cf
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Symfony/Bundle/SecurityBundle/DependencyInjection/Configuration.php

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

@@ -23,6 +23,7 @@ class Configuration
 
         return $tb
             ->root('security', 'array')
+                ->ignoreExtraKeys()
                 ->fixXmlConfig('factory', 'factories')
                 ->arrayNode('factories')
                     ->prototype('scalar')->end()