anonymous services are always private

This commit is contained in:
Christian Flothmann 2016-04-09 16:46:37 +02:00
parent 064aedf9e3
commit 0a469a418f
1 changed files with 1 additions and 5 deletions

View File

@ -302,11 +302,7 @@ class XmlFileLoader extends FileLoader
// give it a unique name
$id = sprintf('%s_%d', hash('sha256', $file), ++$count);
$node->setAttribute('id', $id);
if ($services = $this->getChildren($node, 'service')) {
$definitions[$id] = array($node, $file, true);
$services[0]->setAttribute('id', $id);
}
$definitions[$id] = array($node, $file, true);
}
}