We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd6133 commit 43c60cdCopy full SHA for 43c60cd
src/DI/Container.php
@@ -98,8 +98,10 @@ public function removeService($name)
98
*/
99
public function getService($name)
100
{
101
- $name = isset($this->meta[self::ALIASES][$name]) ? $this->meta[self::ALIASES][$name] : $name;
102
if (!isset($this->registry[$name])) {
+ if (isset($this->meta[self::ALIASES][$name])) {
103
+ return $this->getService($this->meta[self::ALIASES][$name]);
104
+ }
105
$this->registry[$name] = $this->createService($name);
106
}
107
return $this->registry[$name];
0 commit comments