Bläddra i källkod

Merge remote branch 'stof/config_path'

* stof/config_path:
  Fixed path for finalization errors when using a prototype
Fabien Potencier 14 år sedan
förälder
incheckning
418655e571
1 ändrade filer med 1 tillägg och 0 borttagningar
  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) {