[Console] simplified asXml() method
This commit is contained in:
parent
227653fd24
commit
626b88c8f1
@ -633,10 +633,7 @@ class Application
|
|||||||
$commandXML->appendChild($dom->createTextNode($command->getName()));
|
$commandXML->appendChild($dom->createTextNode($command->getName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
$commandXML = new \DOMDocument('1.0', 'UTF-8');
|
$node = $command->asXml(true)->getElementsByTagName('command')->item(0);
|
||||||
$commandXML->formatOutput = true;
|
|
||||||
$commandXML->loadXML($command->asXml());
|
|
||||||
$node = $commandXML->getElementsByTagName('command')->item(0);
|
|
||||||
$node = $dom->importNode($node, true);
|
$node = $dom->importNode($node, true);
|
||||||
|
|
||||||
$commandsXML->appendChild($node);
|
$commandsXML->appendChild($node);
|
||||||
|
Reference in New Issue
Block a user