10000 [DoctrineBridge] Cleanup 3.4 legacy · symfony/symfony@6041be7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6041be7

Browse files
authored
[DoctrineBridge] Cleanup 3.4 legacy
1 parent edac0ce commit 6041be7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Symfony/Bridge/Doctrine/ManagerRegistry.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,13 @@ protected function resetService($name)
5454
}
5555
$manager->setProxyInitializer(\Closure::bind(
5656
function (&$wrappedInstance, LazyLoadingInterface $manager) use ($name) {
57-
if (isset($this->normalizedIds[$normalizedId = strtolower($name)])) { // BC with DI v3.4
58-
$name = $this->normalizedIds[$normalizedId];
59-
}
6057
if (isset($this->aliases[$name])) {
6158
$name = $this->aliases[$name];
6259
}
6360
if (isset($this->fileMap[$name])) {
6461
$wrappedInstance = $this->load($this->fileMap[$name]);
6562
} else {
66-
$method = $this->methodMap[$name] ?? 'get'.strtr($name, $this->underscoreMap).'Service'; // BC with DI v3.4
67-
$wrappedInstance = $this->{$method}(false);
63+
$wrappedInstance = $this->{$this->methodMap[$name]}(false);
6864
}
6965

7066
$manager->setProxyInitializer(null);

0 commit comments

Comments
 (0)
0