10000 minor #23300 [DI] Remove an unused property (dunglas) · symfony/symfony@06e21f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 06e21f7

Browse files
committed
minor #23300 [DI] Remove an unused property (dunglas)
This PR was merged into the 4.0-dev branch. Discussion ---------- [DI] Remove an unused property | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? |no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Commits ------- e5bb2bc [DI][DoctrineBridge] Remove unused underscoreMap properties
2 parents 10da788 + e5bb2bc commit 06e21f7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Symfony/Bridge/Doctrine/ManagerRegistry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function (&$wrappedInstance, LazyLoadingInterface $manager) use ($name) {
5252
if (isset($this->aliases[$name = strtolower($name)])) {
5353
$name = $this->aliases[$name];
5454
}
55-
$method = !isset($this->methodMap[$name]) ? 'get'.strtr($name, $this->underscoreMap).'Service' : $this->methodMap[$name];
55+
$method = $this->methodMap[$name] ?? 'get'.$name.'Service';
5656
$wrappedInstance = $this->{$method}(false);
5757

5858
$manager->setProxyInitializer(null);

src/Symfony/Component/DependencyInjection/Container.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class Container implements ResettableContainerInterface
7575
*/
7676
protected $normalizedIds = array();
7777

78-
private $underscoreMap = array('_' => '', '.' => '_', '\\' => '_');
7978
private $envCache = array();
8079
private $compiled = false;
8180

0 commit comments

Comments
 (0)
0