Skip to content

Commit 7d6490b

Browse files
[FrameworkBundle] give access to non-shared services when using test.service_container
1 parent 8839f62 commit 7d6490b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Compiler/InlineServiceDefinitionsPass.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ private function isInlineableDefinition($id, Definition $definition, ServiceRefe
9393
}
9494

9595
if (!$definition->isShared()) {
96+
foreach ($graph->getNode($id)->getInEdges() as $edge) {
97+
if ($edge->isWeak()) {
98+
return false;
99+
}
100+
}
101+
96102
return true;
97103
}
98104

0 commit comments

Comments
 (0)