소스 검색

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