8000 minor #21615 [DI][FrameworkBundle] ServiceLocator: fix XmlDescriptor … · symfony/symfony@a70ee67 · GitHub
[go: up one dir, main page]

Skip to content

Commit a70ee67

Browse files
committed
minor #21615 [DI][FrameworkBundle] ServiceLocator: fix XmlDescriptor to use dashes (ogizanagi)
This PR was merged into the 3.3-dev branch. Discussion ---------- [DI][FrameworkBundle] ServiceLocator: fix XmlDescriptor to use dashes | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #21600 (comment) | License | MIT | Doc PR | N/A As reported by @stof, I should have used dashes, not underscores. My bad... Commits ------- 1417f11 [DI][FrameworkBundle] ServiceLocator: fix XML descriptor to use dashes
2 parents 0976c86 + 1417f11 commit a70ee67

File tree

3 files changed

+3
-3
lines changed
  • Tests/Fixtures/Descriptor
  • 3 files changed

    +3
    -3
    lines changed

    src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -437,7 +437,7 @@ private function getArgumentNodes(array $arguments, \DOMDocument $dom)
    437437
    $argumentXML->appendChild($childArgumentXML);
    438438
    }
    439439
    } elseif ($argument instanceof ServiceLocatorArgument) {
    440-
    $argumentXML->setAttribute('type', 'service_locator');
    440+
    $argumentXML->setAttribute('type', 'service-locator');
    441441

    442442
    foreach ($this->getArgumentNodes($argument->getValues(), $dom) as $childArgumentXML) {
    443443
    $argumentXML->appendChild($childArgumentXML);

    src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/builder_1_arguments.xml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -24,7 +24,7 @@
    2424
    <argument type="service" id="definition_2"/>
    2525
    </argument>
    2626
    <argument type="closure-proxy" id="definition1" method="get"/>
    27-
    <argument type="service_locator">
    27+
    <argument type="service-locator">
    2828
    <argument key="def1" type="service" id="definition_1"/>
    2929
    <argument key="def2" type="service" id="definition_2"/>
    3030
    </argument>

    src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/definition_arguments_1.xml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -21,7 +21,7 @@
    2121
    <argument type="service" id="definition_2"/>
    2222
    </argument>
    2323
    <argument type="closure-proxy" id="definition1" method="get"/>
    24-
    <argument type="service_locator">
    24+
    <argument type="service-locator">
    2525
    <argument key="def1" type="service" id="definition_1"/>
    2626
    <argument key="def2" type="service" id="definition_2"/>
    2727
    </argument>

    0 commit comments

    Comments
     (0)
    0