8000 Rename XML type · symfony/symfony@871eea1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 871eea1

Browse files
committed
Rename XML type
1 parent 08f51eb commit 871eea1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ private function getArgumentsAsPhp(\DOMElement $node, $name, $file, $lowercase =
554554
case 'constant':
555555
$arguments[$key] = \constant(trim($arg->nodeValue));
556556
break;
557-
case 'yaml_file':
557+
case 'yaml-file':
558558
if (!\class_exists('Symfony\Component\Yaml\Yaml')) {
559559
throw new \InvalidArgumentException('You need to install the YAML component to parse YAML files.');
560560
}

src/Symfony/Component/DependencyInjection/Loader/schema/dic/services/services-1.0.xsd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
<xsd:attribute name="name" type="xsd:string" />
210210
<xsd:attribute name="on-invalid" type="invalid_sequence" />
211211
<xsd:attribute name="tag" type="xsd:string" />
212-
<xsd:attribute name="yaml_file" type="xsd:string" />
212+
<xsd:attribute name="yaml-file" type="xsd:string" />
213213
</xsd:complexType>
214214

215215
<xsd:complexType name="bind" mixed="true">
@@ -237,7 +237,7 @@
237237
<xsd:attribute name="tag" type="xsd:string" />
238238
<xsd:attribute name="index-by" type="xsd:string" />
239239
<xsd:attribute name="default-index-method" type="xsd:string" />
240-
<xsd:attribute name="yaml_file" type="xsd:string" />
240+
<xsd:attribute name="yaml-file" type="xsd:string" />
241241
</xsd:complexType>
242242

243243
<xsd:complexType name="call">
@@ -266,7 +266,7 @@
266266
<xsd:enumeration value="iterator" />
267267
<xsd:enumeration value="service_locator" />
268268
<xsd:enumeration value="tagged" />
269-
<xsd:enumeration value="yaml_file" />
269+
<xsd:enumeration value="yaml-file" />
270270
</xsd:restriction>
271271
</xsd:simpleType>
272272

src/Symfony/Component/DependencyInjection/Tests/Fixtures/xml/services_with_yaml_file_argument.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">
33
<services>
44
<service class="foo" id="my_awesome_service_with_yaml_inside">
5-
<argument type="yaml_file">%fixture_path%/test_yaml_file.yaml</argument>
5+
<argument type="yaml-file">%fixture_path%/test_yaml_file.yaml</argument>
66
</service>
77
</services>
88
</container>

0 commit comments

Comments
 (0)
0