minor #12072 [DependencyInjection] Removed unreachable code (unkind)
This PR was merged into the 2.6-dev branch.
Discussion
----------
[DependencyInjection] Removed unreachable code
| Q | A
| ------------- | ---
| Bug fix? | not really
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
According to undefined $e, this is an unreachable code. As I can see, circular references are handled by parent method.
Commits
-------
ecedea2
[DependencyInjection] Removed unreachable code
This commit is contained in:
commit
f3ef9d2009
@ -470,10 +470,6 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
return $service;
|
return $service;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($this->loading[$id])) {
|
|
||||||
throw new LogicException(sprintf('The service "%s" has a circular reference to itself.', $id), 0, $e);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$this->hasDefinition($id) && isset($this->aliasDefinitions[$id])) {
|
if (!$this->hasDefinition($id) && isset($this->aliasDefinitions[$id])) {
|
||||||
return $this->get($this->aliasDefinitions[$id]);
|
return $this->get($this->aliasDefinitions[$id]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user