Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccf2094

Browse files
committed
[Console] reverted change in the XML root name (refs #8928)
1 parent 703fda3 commit ccf2094

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/Symfony/Component/Console/Descriptor/XmlDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getCommandDocument(Command $command)
9393
public function getApplicationDocument(Application $application, $namespace = null)
9494
{
9595
$dom = new \DOMDocument('1.0', 'UTF-8');
96-
$dom->appendChild($rootXml = $dom->createElement('application'));
96+
$dom->appendChild($rootXml = $dom->createElement('symfony'));
9797

9898
if ($application->getName() !== 'UNKNOWN') {
9999
$rootXml->setAttribute('name', $application->getName());

src/Symfony/Component/Console/Tests/Fixtures/application_1.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<application>
2+
<symfony>
33
<commands>
44
<command id="help" name="help">
55
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
@@ -105,4 +105,4 @@
105105
<command>list</command>
106106
</namespace>
107107
</namespaces>
108-
</application>
108+
</symfony>

src/Symfony/Component/Console/Tests/Fixtures/application_2.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<application name="My Symfony application" version="v1.0">
2+
<symfony name="My Symfony application" version="v1.0">
33
<commands>
44
<command id="help" name="help">
55
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
@@ -182,4 +182,4 @@
182182
<command>descriptor:command2</command>
183183
</namespace>
184184
</namespaces>
185-
</application>
185+
</symfony>

src/Symfony/Component/Console/Tests/Fixtures/application_asxml1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<application>
2+
<symfony>
33
<commands>
44
<command id="help" name="help">
55
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
@@ -141,4 +141,4 @@
141141
<command>foo:bar</command>
142142
</namespace>
143143
</namespaces>
144-
</application>
144+
</symfony>

src/Symfony/Component/Console/Tests/Fixtures/application_asxml2.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<application>
2+
<symfony>
33
<commands namespace="foo">
44
<command id="foo:bar" name="foo:bar">
55
<usage>foo:bar</usage>
@@ -34,4 +34,4 @@
3434
</options>
3535
</command>
3636
</commands>
37-
</application>
37+
</symfony>

0 commit comments

Comments
 (0)