[DI] fix InlineServiceDefinitionsPass' fix
This commit is contained in:
parent
6cea166e65
commit
302ff0a0ae
@ -92,11 +92,11 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$definition->isShared()) {
|
||||||
if (!$graph->hasNode($id)) {
|
if (!$graph->hasNode($id)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$definition->isShared()) {
|
|
||||||
foreach ($graph->getNode($id)->getInEdges() as $edge) {
|
foreach ($graph->getNode($id)->getInEdges() as $edge) {
|
||||||
if ($edge->isWeak()) {
|
if ($edge->isWeak()) {
|
||||||
return false;
|
return false;
|
||||||
@ -110,6 +110,10 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$graph->hasNode($id)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->currentId == $id) {
|
if ($this->currentId == $id) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user