parent
acc508b1d8
commit
155f0e1fad
1 changed files with 2 additions and 2 deletions
|
@ -256,10 +256,10 @@ function makeVerticesAndEdges(Graph $graph, array $services, array $volumes, arr
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($definition['depends_on'] ?? [] as $dependency) {
|
foreach ($definition['depends_on'] ?? [] as $key => $dependency) {
|
||||||
addRelation(
|
addRelation(
|
||||||
$graph->getVertex($service),
|
$graph->getVertex($service),
|
||||||
addService($graph, $dependency),
|
addService($graph, is_array($dependency) ? $key : $dependency),
|
||||||
'depends_on'
|
'depends_on'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue