[FrameworkBundle] Removing the "namespace" key when it's defined in its own weird location in XML. This prevents that key, which we move in this same location, from looking like an invalid option during validation.

This commit is contained in:
Ryan Weaver 2011-02-18 07:43:36 -06:00
parent d6617f6fba
commit 2d94f2d8d0

View File

@ -195,6 +195,7 @@ class Configuration
->ifTrue(function($v) { return is_array($v) && !empty($v['annotations']) && !empty($v['namespace']); }) ->ifTrue(function($v) { return is_array($v) && !empty($v['annotations']) && !empty($v['namespace']); })
->then(function($v){ ->then(function($v){
$v['annotations'] = array('namespace' => $v['namespace']); $v['annotations'] = array('namespace' => $v['namespace']);
unset($v['namespace']);
return $v; return $v;
}) })
->end() ->end()