vendor/symfony/console/Symfony/Component/Console/Application.php 1 location
|
@@ 648-660 (lines=13) @@
|
645 |
|
* |
646 |
|
* @deprecated Deprecated since version 2.3, to be removed in 3.0. |
647 |
|
*/ |
648 |
|
public function asXml($namespace = null, $asDom = false) |
649 |
|
{ |
650 |
|
$descriptor = new XmlDescriptor(); |
651 |
|
|
652 |
|
if ($asDom) { |
653 |
|
return $descriptor->getApplicationDocument($this, $namespace); |
654 |
|
} |
655 |
|
|
656 |
|
$output = new BufferedOutput(); |
657 |
|
$descriptor->describe($output, $this, array('namespace' => $namespace)); |
658 |
|
|
659 |
|
return $output->fetch(); |
660 |
|
} |
661 |
|
|
662 |
|
/** |
663 |
|
* Renders a caught exception. |
vendor/symfony/console/Symfony/Component/Console/Command/Command.php 1 location
|
@@ 632-644 (lines=13) @@
|
629 |
|
* |
630 |
|
* @deprecated Deprecated since version 2.3, to be removed in 3.0. |
631 |
|
*/ |
632 |
|
public function asXml($asDom = false) |
633 |
|
{ |
634 |
|
$descriptor = new XmlDescriptor(); |
635 |
|
|
636 |
|
if ($asDom) { |
637 |
|
return $descriptor->getCommandDocument($this); |
638 |
|
} |
639 |
|
|
640 |
|
$output = new BufferedOutput(); |
641 |
|
$descriptor->describe($output, $this); |
642 |
|
|
643 |
|
return $output->fetch(); |
644 |
|
} |
645 |
|
|
646 |
|
/** |
647 |
|
* Validates a command name. |
vendor/symfony/console/Symfony/Component/Console/Input/InputDefinition.php 1 location
|
@@ 440-452 (lines=13) @@
|
437 |
|
* |
438 |
|
* @deprecated Deprecated since version 2.3, to be removed in 3.0. |
439 |
|
*/ |
440 |
|
public function asXml($asDom = false) |
441 |
|
{ |
442 |
|
$descriptor = new XmlDescriptor(); |
443 |
|
|
444 |
|
if ($asDom) { |
445 |
|
return $descriptor->getInputDefinitionDocument($this); |
446 |
|
} |
447 |
|
|
448 |
|
$output = new BufferedOutput(); |
449 |
|
$descriptor->describe($output, $this); |
450 |
|
|
451 |
|
return $output->fetch(); |
452 |
|
} |
453 |
|
} |
454 |
|
|