[Console] reverted change in the XML root name (refs #8928)
This commit is contained in:
parent
703fda3b8b
commit
ccf2094752
@ -93,7 +93,7 @@ class XmlDescriptor extends Descriptor
|
|||||||
public function getApplicationDocument(Application $application, $namespace = null)
|
public function getApplicationDocument(Application $application, $namespace = null)
|
||||||
{
|
{
|
||||||
$dom = new \DOMDocument('1.0', 'UTF-8');
|
$dom = new \DOMDocument('1.0', 'UTF-8');
|
||||||
$dom->appendChild($rootXml = $dom->createElement('application'));
|
$dom->appendChild($rootXml = $dom->createElement('symfony'));
|
||||||
|
|
||||||
if ($application->getName() !== 'UNKNOWN') {
|
if ($application->getName() !== 'UNKNOWN') {
|
||||||
$rootXml->setAttribute('name', $application->getName());
|
$rootXml->setAttribute('name', $application->getName());
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<application>
|
<symfony>
|
||||||
<commands>
|
<commands>
|
||||||
<command id="help" name="help">
|
<command id="help" name="help">
|
||||||
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
||||||
@ -105,4 +105,4 @@
|
|||||||
<command>list</command>
|
<command>list</command>
|
||||||
</namespace>
|
</namespace>
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</application>
|
</symfony>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<application name="My Symfony application" version="v1.0">
|
<symfony name="My Symfony application" version="v1.0">
|
||||||
<commands>
|
<commands>
|
||||||
<command id="help" name="help">
|
<command id="help" name="help">
|
||||||
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
||||||
@ -182,4 +182,4 @@
|
|||||||
<command>descriptor:command2</command>
|
<command>descriptor:command2</command>
|
||||||
</namespace>
|
</namespace>
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</application>
|
</symfony>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<application>
|
<symfony>
|
||||||
<commands>
|
<commands>
|
||||||
<command id="help" name="help">
|
<command id="help" name="help">
|
||||||
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
<usage>help [--xml] [--format="..."] [--raw] [command_name]</usage>
|
||||||
@ -141,4 +141,4 @@
|
|||||||
<command>foo:bar</command>
|
<command>foo:bar</command>
|
||||||
</namespace>
|
</namespace>
|
||||||
</namespaces>
|
</namespaces>
|
||||||
</application>
|
</symfony>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<application>
|
<symfony>
|
||||||
<commands namespace="foo">
|
<commands namespace="foo">
|
||||||
<command id="foo:bar" name="foo:bar">
|
<command id="foo:bar" name="foo:bar">
|
||||||
<usage>foo:bar</usage>
|
<usage>foo:bar</usage>
|
||||||
@ -34,4 +34,4 @@
|
|||||||
</options>
|
</options>
|
||||||
</command>
|
</command>
|
||||||
</commands>
|
</commands>
|
||||||
</application>
|
</symfony>
|
||||||
|
Reference in New Issue
Block a user