You are here

private function XmlDescriptor::appendDocument in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Descriptor/XmlDescriptor.php \Symfony\Component\Console\Descriptor\XmlDescriptor::appendDocument()

Appends document children to parent node.

Parameters

\DOMNode $parentNode:

\DOMNode $importedParent:

3 calls to XmlDescriptor::appendDocument()
XmlDescriptor::getApplicationDocument in vendor/symfony/console/Descriptor/XmlDescriptor.php
XmlDescriptor::getCommandDocument in vendor/symfony/console/Descriptor/XmlDescriptor.php
XmlDescriptor::getInputDefinitionDocument in vendor/symfony/console/Descriptor/XmlDescriptor.php

File

vendor/symfony/console/Descriptor/XmlDescriptor.php, line 179

Class

XmlDescriptor
XML descriptor.

Namespace

Symfony\Component\Console\Descriptor

Code

private function appendDocument(\DOMNode $parentNode, \DOMNode $importedParent) {
  foreach ($importedParent->childNodes as $childNode) {
    $parentNode
      ->appendChild($parentNode->ownerDocument
      ->importNode($childNode, true));
  }
}