[DI] Remove dead service_container checks
This commit is contained in:
parent
cd217fd121
commit
9a8ea93139
@ -258,10 +258,6 @@ abstract class Descriptor implements DescriptorInterface
|
|||||||
return $builder->getAlias($serviceId);
|
return $builder->getAlias($serviceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('service_container' === $serviceId) {
|
|
||||||
return $builder;
|
|
||||||
}
|
|
||||||
|
|
||||||
// the service has been injected in some special way, just return the service
|
// the service has been injected in some special way, just return the service
|
||||||
return $builder->get($serviceId);
|
return $builder->get($serviceId);
|
||||||
}
|
}
|
||||||
|
@ -192,8 +192,7 @@ class GraphvizDumper extends Dumper
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$container->hasDefinition($id)) {
|
if (!$container->hasDefinition($id)) {
|
||||||
$class = get_class('service_container' === $id ? $this->container : $container->get($id));
|
$nodes[$id] = array('class' => str_replace('\\', '\\\\', get_class($container->get($id))), 'attributes' => $this->options['node.instance']);
|
||||||
$nodes[$id] = array('class' => str_replace('\\', '\\\\', $class), 'attributes' => $this->options['node.instance']);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user