use Symfony\Component\DependencyInjection\ChildDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
-use Symfony\Component\DependencyInjection\Exception\RuntimeException;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
+use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* Applies instanceof conditionals to definitions.
$definition->setShared($shared);
}
- $i = count($instanceofTags);
+ $i = \count($instanceofTags);
while (0 <= --$i) {
foreach ($instanceofTags[$i] as $k => $v) {
foreach ($v as $v) {
- if ($definition->hasTag($k) && in_array($v, $definition->getTag($k))) {
+ if ($definition->hasTag($k) && \in_array($v, $definition->getTag($k))) {
continue;
}
$definition->addTag($k, $v);
}
}
+ $definition->setBindings($bindings);
+
// reset fields with "merge" behavior
$abstract
- ->setBindings($bindings)
+ ->setBindings(array())
->setArguments(array())
->setMethodCalls(array())
->setDecoratedService(null)