Fixed xmlloader

This commit is contained in:
Christophe Coevoet 2011-02-15 22:24:00 +01:00 committed by Fabien Potencier
parent a29a413c48
commit a5bac4b5a3

View File

@ -271,7 +271,7 @@ class XmlFileLoader extends FileLoader
// anonymous services as arguments
if (false === $nodes = $xml->xpath('//container:argument[@type="service"][not(@id)]')) {
return;
return $xml;
}
foreach ($nodes as $node) {
// give it a unique name
@ -283,7 +283,7 @@ class XmlFileLoader extends FileLoader
// anonymous services "in the wild"
if (false === $nodes = $xml->xpath('//container:services/container:service[not(@id)]')) {
return;
return $xml;
}
foreach ($nodes as $node) {
// give it a unique name