Fixed xmlloader
This commit is contained in:
parent
a29a413c48
commit
a5bac4b5a3
@ -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
|
||||
|
Reference in New Issue
Block a user