You are here

private function XmlDescriptor::writeDocument 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::writeDocument()

Writes DOM document.

Parameters

\DOMDocument $dom:

Return value

\DOMDocument|string

5 calls to XmlDescriptor::writeDocument()
XmlDescriptor::describeApplication in vendor/symfony/console/Descriptor/XmlDescriptor.php
Describes an Application instance.
XmlDescriptor::describeCommand in vendor/symfony/console/Descriptor/XmlDescriptor.php
Describes a Command instance.
XmlDescriptor::describeInputArgument in vendor/symfony/console/Descriptor/XmlDescriptor.php
Describes an InputArgument instance.
XmlDescriptor::describeInputDefinition in vendor/symfony/console/Descriptor/XmlDescriptor.php
Describes an InputDefinition instance.
XmlDescriptor::describeInputOption in vendor/symfony/console/Descriptor/XmlDescriptor.php
Describes an InputOption instance.

File

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

Class

XmlDescriptor
XML descriptor.

Namespace

Symfony\Component\Console\Descriptor

Code

private function writeDocument(\DOMDocument $dom) {
  $dom->formatOutput = true;
  $this
    ->write($dom
    ->saveXML());
}