$definition->setMethodCalls($this->processArguments($definition->getMethodCalls()));
$definition->setProperties($this->processArguments($definition->getProperties()));
$definition->setFactory($this->processFactory($definition->getFactory()));
- $definition->setFactoryService($this->processFactoryService($definition->getFactoryService(false)), false);
}
foreach ($container->getAliases() as $id => $alias) {
$defId = $this->getDefinitionId($id = (string) $argument);
if ($defId !== $id) {
- $arguments[$k] = new Reference($defId, $argument->getInvalidBehavior(), $argument->isStrict(false));
+ $arguments[$k] = new Reference($defId, $argument->getInvalidBehavior());
}
}
}
return $arguments;
}
- private function processFactoryService($factoryService)
- {
- if (null === $factoryService) {
- return;
- }
-
- return $this->getDefinitionId($factoryService);
- }
-
private function processFactory($factory)
{
if (null === $factory || !is_array($factory) || !$factory[0] instanceof Reference) {
$defId = $this->getDefinitionId($id = (string) $factory[0]);
if ($defId !== $id) {
- $factory[0] = new Reference($defId, $factory[0]->getInvalidBehavior(), $factory[0]->isStrict(false));
+ $factory[0] = new Reference($defId, $factory[0]->getInvalidBehavior());
}
return $factory;