Skip to content

Commit

Permalink
[Console] reverted change in the XML root name (refs #8928)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Sep 7, 2013
1 parent 703fda3 commit ccf2094
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Descriptor/XmlDescriptor.php
Expand Up @@ -93,7 +93,7 @@ public function getCommandDocument(Command $command)
public function getApplicationDocument(Application $application, $namespace = null)
{
$dom = new \DOMDocument('1.0', 'UTF-8');
$dom->appendChild($rootXml = $dom->createElement('application'));
$dom->appendChild($rootXml = $dom->createElement('symfony'));

if ($application->getName() !== 'UNKNOWN') {
$rootXml->setAttribute('name', $application->getName());
Expand Down
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
<symfony>
<commands>
<command id="help" name="help">
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
Expand Down Expand Up @@ -105,4 +105,4 @@
<command>list</command>
</namespace>
</namespaces>
</application>
</symfony>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<application name="My Symfony application" version="v1.0">
<symfony name="My Symfony application" version="v1.0">
<commands>
<command id="help" name="help">
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
Expand Down Expand Up @@ -182,4 +182,4 @@
<command>descriptor:command2</command>
</namespace>
</namespaces>
</application>
</symfony>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
<symfony>
<commands>
<command id="help" name="help">
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
Expand Down Expand Up @@ -141,4 +141,4 @@
<command>foo:bar</command>
</namespace>
</namespaces>
</application>
</symfony>
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
<symfony>
<commands namespace="foo">
<command id="foo:bar" name="foo:bar">
<usage>foo:bar</usage>
Expand Down Expand Up @@ -34,4 +34,4 @@
</options>
</command>
</commands>
</application>
</symfony>

0 comments on commit ccf2094

Please sign in to comment.