Processes service definitions for arguments to find relationships for the service graph.
array $arguments An array of Reference or Definition objects relating to service definitions:
private function processArguments(array $arguments) {
foreach ($arguments as $argument) {
if (is_array($argument)) {
$this
->processArguments($argument);
}
elseif ($argument instanceof Reference) {
$this->graph
->connect($this->currentId, $this->currentDefinition, $this
->getDefinitionId((string) $argument), $this
->getDefinition((string) $argument), $argument);
}
elseif ($argument instanceof Definition) {
$this
->processArguments($argument
->getArguments());
$this
->processArguments($argument
->getMethodCalls());
$this
->processArguments($argument
->getProperties());
}
}
}