Parses multiple definitions
SimpleXMLElement $xml:
string $file:
private function parseDefinitions(SimpleXMLElement $xml, $file) {
if (false === ($services = $xml
->xpath('//container:services/container:service'))) {
return;
}
foreach ($services as $service) {
$this
->parseDefinition((string) $service['id'], $service, $file);
}
}