8000 minor #35044 [DoctrineBridge] Cleanup 3.4 legacy (ro0NL) · symfony/symfony@94ab844 · GitHub
[go: up one dir, main page]

Skip to content

Commit 94ab844

Browse files
minor #35044 [DoctrineBridge] Cleanup 3.4 legacy (ro0NL)
This PR was merged into the 5.0 branch. Discussion ---------- [DoctrineBridge] Cleanup 3.4 legacy | Q | A | ------------- | --- | Branch? | 5.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #... <!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch master. --> Commits ------- 6041be7 [DoctrineBridge] Cleanup 3.4 legacy
2 parents edac0ce + 6041be7 commit 94ab844

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