Permalink
Browse files

Config\Compiler: fixed cloning of definition structure

  • Loading branch information...
dg committed May 17, 2012
1 parent 936095c commit 43e430f7f4a33818adc7090ab86aa9703e62a42b
Showing with 1 addition and 1 deletion.
  1. +1 −1 Nette/Config/Compiler.php
@@ -221,7 +221,7 @@ public static function parseServices(Nette\DI\ContainerBuilder $container, array
$definition = $container->addDefinition($name);
if ($parent !== Helpers::OVERWRITE) {
foreach ($container->getDefinition($parent) as $k => $v) {
- $definition->$k = $v;
+ $definition->$k = unserialize(serialize($v)); // deep clone
}
}
} elseif ($container->hasDefinition($name)) {

0 comments on commit 43e430f

Please sign in to comment.