8000 [DI] Check privates before resolving alias in Container::initialized · symfony/symfony@c4b6066 · GitHub
[go: up one dir, main page]

Skip to content

Commit c4b6066

Browse files
committed
[DI] Check privates before resolving alias in Container::initialized
1 parent 2ed4cfb commit c4b6066

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/DependencyInjection/Container.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,14 @@ public function initialized($id)
366366
return false;
367367
}
368368

369-
if (isset($this->aliases[$id])) {
370-
$id = $this->aliases[$id];
371-
}
372-
373369
if (isset($this->privates[$id])) {
374370
@trigger_error(sprintf('Checking for the initialization of the "%s" private service is deprecated since Symfony 3.4 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
375371
}
376372

373+
if (isset($this->aliases[$id])) {
374+
$id = $this->aliases[$id];
375+
}
376+
377377
return isset($this->services[$id]);
378378
}
379379

0 commit comments

Comments
 (0)
0