8000 [DepenencyInjection] non-shared services seems to be not found · symfony/symfony@b6069cc · GitHub
[go: up one dir, main page]

Skip to content

Commit b6069cc

Browse files
author
Amrouche Hamza
committed
[DepenencyInjection] non-shared services seems to be not found
1 parent bbad6e8 commit b6069cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/DependencyInjection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ protected function processValue($value, $isRoot = false)
8383
}
8484
}
8585

86+
if (false === $this->container->has((string) $value) && $graph->hasNode($currentId)) {
87+
return $value;
88+
}
89+
8690
throw new ServiceNotFoundException($id, $currentId);
8791
}
8892
}

0 commit comments

Comments
 (0)
0