[DependencyInjection] fixed strict flag propagation to aliases

This commit is contained in:
Fabien Potencier 2011-01-22 16:05:51 +01:00
parent 959438ee81
commit 4909987e23

View File

@ -51,7 +51,7 @@ class ResolveReferencesToAliasesPass implements CompilerPassInterface
$defId = $this->getDefinitionId($id = (string) $argument);
if ($defId !== $id) {
$arguments[$k] = new Reference($defId, $argument->getInvalidBehavior());
$arguments[$k] = new Reference($defId, $argument->getInvalidBehavior(), $argument->isStrict());
}
}
}