Skip to content

Commit e5bb2bc

Browse files
committed
[DI][DoctrineBridge] Remove unused underscoreMap properties
1 parent b092d1b commit e5bb2bc

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Symfony/Bridge/Doctrine/ManagerRegistry.php

+1-1
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

-1
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)