瀏覽代碼

Fixed path for finalization errors when using a prototype

Christophe Coevoet 14 年之前
父節點
當前提交
fc9ff68052
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Symfony/Component/Config/Definition/ArrayNode.php

+ 1 - 0
src/Symfony/Component/Config/Definition/ArrayNode.php

@@ -293,6 +293,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
 
         if (null !== $this->prototype) {
             foreach ($value as $k => $v) {
+                $this->prototype->setName($k);
                 try {
                     $value[$k] = $this->prototype->finalize($v);
                 } catch (UnsetKeyException $unset) {