From 1417f112a779f93a67f0748481e465b2925b4b66 Mon Sep 17 00:00:00 2001 From: Maxime Steinhausser Date: Tue, 14 Feb 2017 23:21:16 +0100 Subject: [PATCH] [DI][FrameworkBundle] ServiceLocator: fix XML descriptor to use dashes --- .../Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php | 2 +- .../Tests/Fixtures/Descriptor/builder_1_arguments.xml | 2 +- .../Tests/Fixtures/Descriptor/definition_arguments_1.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php index 5b9c9b6177..c5b42e3bab 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php @@ -437,7 +437,7 @@ class XmlDescriptor extends Descriptor $argumentXML->appendChild($childArgumentXML); } } elseif ($argument instanceof ServiceLocatorArgument) { - $argumentXML->setAttribute('type', 'service_locator'); + $argumentXML->setAttribute('type', 'service-locator'); foreach ($this->getArgumentNodes($argument->getValues(), $dom) as $childArgumentXML) { $argumentXML->appendChild($childArgumentXML); diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.xml b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.xml index 503a6d8685..930fc5204a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.xml +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.xml @@ -24,7 +24,7 @@ - + diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_arguments_1.xml b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_arguments_1.xml index 71f434472c..cc8f6421a7 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_arguments_1.xml +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_arguments_1.xml @@ -21,7 +21,7 @@ - +