8000 minor #12072 [DependencyInjection] Removed unreachable code (unkind) · symfony/symfony@f3ef9d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3ef9d2

Browse files
committed
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
2 parents 2a8fed6 + ecedea2 commit f3ef9d2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,6 @@ public function get($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INV
470470
return $service;
471471
}
472472

473-
if (isset($this->loading[$id])) {
474-
throw new LogicException(sprintf('The service "%s" has a circular reference to itself.', $id), 0, $e);
475-
}
476-
477473
if (!$this->hasDefinition($id) && isset($this->aliasDefinitions[$id])) {
478474
return $this->get($this->aliasDefinitions[$id]);
479475
}

0 commit comments

Comments
 (0)
0