瀏覽代碼

[SecurityBundle] removed the option to declare access_control rules based on request attributes

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

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

@@ -107,16 +107,6 @@ class Configuration
                         ->beforeNormalization()->ifString()->then(function($v) { return preg_split('/\s*,\s*/', $v); })->end()
                         ->prototype('scalar')->end()
                     ->end()
-                    ->fixXmlConfig('attribute')
-                    ->arrayNode('attributes')
-                        ->useAttributeAsKey('key')
-                        ->prototype('scalar')
-                            ->beforeNormalization()
-                                ->ifTrue(function($v) { return is_array($v) && isset($v['pattern']); })
-                                ->then(function($v) { return $v['pattern']; })
-                            ->end()
-                        ->end()
-                    ->end()
                 ->end()
             ->end()
         ;