Merge branch '4.1' into 4.2

* 4.1:
  [DI] fix InlineServiceDefinitionsPass' fix
This commit is contained in:
Nicolas Grekas 2018-12-01 10:30:54 +01:00
commit cb57f87ad1

View File

@ -164,11 +164,11 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
return false;
}
if (!$this->graph->hasNode($id)) {
return true;
}
if (!$definition->isShared()) {
if (!$this->graph->hasNode($id)) {
return true;
}
foreach ($this->graph->getNode($id)->getInEdges() as $edge) {
$srcId = $edge->getSourceNode()->getId();
$this->connectedIds[$srcId] = true;
@ -184,6 +184,10 @@ class InlineServiceDefinitionsPass extends AbstractRecursivePass implements Repe
return false;
}
if (!$this->graph->hasNode($id)) {
return true;
}
if ($this->currentId == $id) {
return false;
}