Browse Source

[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 năm trước cách đây
mục cha
commit
a334a576cf

+ 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()