You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/ContainerBuilder.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -559,10 +559,10 @@ public function get($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INV
559
559
if ($this->isCompiled()) {
560
560
$id = $this->normalizeId($id);
561
561
562
-
if (isset($this->definitions[$id]) && $this->definitions[$id]->isPrivate()) {
562
+
if (isset($this->definitions[$id]) && (!$this->definitions[$id]->isPublic() || $this->definitions[$id]->isPrivate())) {
563
563
@trigger_error(sprintf('Fetching the "%s" private service is deprecated and will fail in Symfony 4.0. Make the service public instead.', $id), E_USER_DEPRECATED);
564
564
}
565
-
if (isset($this->aliasDefinitions[$id]) && $this->aliasDefinitions[$id]->isPrivate()) {
565
+
if (isset($this->aliasDefinitions[$id]) && (!$this->aliasDefinitions[$id]->isPublic() || $this->aliasDefinitions[$id]->isPrivate())) {
566
566
@trigger_error(sprintf('Fetching the "%s" private alias is deprecated and will fail in Symfony 4.0. Make the alias public instead.', $id), E_USER_DEPRECATED);
0 commit comments