minor #22825 [DI] Remove dead service_container checks (ro0NL)
This PR was merged into the 3.3 branch.
Discussion
----------
[DI] Remove dead service_container checks
| Q | A
| ------------- | ---
| Branch? | 3.3
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!--highly recommended for new features-->
Since #21627
Commits
-------
9a8ea93
[DI] Remove dead service_container checks
This commit is contained in:
commit
40b17336fc
@ -258,10 +258,6 @@ abstract class Descriptor implements DescriptorInterface
|
||||
return $builder->getAlias($serviceId);
|
||||
}
|
||||
|
||||
if ('service_container' === $serviceId) {
|
||||
return $builder;
|
||||
}
|
||||
|
||||
// the service has been injected in some special way, just return the service
|
||||
return $builder->get($serviceId);
|
||||
}
|
||||
|
@ -192,8 +192,7 @@ class GraphvizDumper extends Dumper
|
||||
}
|
||||
|
||||
if (!$container->hasDefinition($id)) {
|
||||
$class = get_class('service_container' === $id ? $this->container : $container->get($id));
|
||||
$nodes[$id] = array('class' => str_replace('\\', '\\\\', $class), 'attributes' => $this->options['node.instance']);
|
||||
$nodes[$id] = array('class' => str_replace('\\', '\\\\', get_class($container->get($id))), 'attributes' => $this->options['node.instance']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user