Merge branch '4.1' into 4.2
* 4.1: [DI] dont inline when lazy edges are found
This commit is contained in:
commit
cfebe0c565
@ -172,7 +172,7 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
|
||||
foreach ($this->graph->getNode($id)->getInEdges() as $edge) {
|
||||
$srcId = $edge->getSourceNode()->getId();
|
||||
$this->connectedIds[$srcId] = true;
|
||||
if ($edge->isWeak()) {
|
||||
if ($edge->isWeak() || $edge->isLazy()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -200,7 +200,7 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
|
||||
$isReferencedByConstructor = $isReferencedByConstructor || $edge->isReferencedByConstructor();
|
||||
$srcId = $edge->getSourceNode()->getId();
|
||||
$this->connectedIds[$srcId] = true;
|
||||
if ($edge->isWeak()) {
|
||||
if ($edge->isWeak() || $edge->isLazy()) {
|
||||
return false;
|
||||
}
|
||||
$srcIds[$srcId] = true;
|
||||
|
Reference in New Issue
Block a user