Переглянути джерело

Fixed path for finalization errors when using a prototype

Christophe Coevoet 14 роки тому
батько
коміт
fc9ff68052

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