8000 Fixed Yaml loader/dumper to use underscores · sandermarechal/symfony@9ba2861 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ba2861

Browse files
committed
Fixed Yaml loader/dumper to use underscores
1 parent b5ba7e1 commit 9ba2861

File tree

4 files changed

+4
-4
lines changed
8000

4 files changed

+4
-4
lines changed

src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private function addService($id, $definition)
143143
list ($decorated, $renamedId) = $decorated;
144144
$code .= sprintf(" decorates: %s\n", $decorated);
145145
if (null !== $renamedId) {
146-
$code .= sprintf(" decoration-inner-name: %s\n", $renamedId);
146+
$code .= sprintf(" decoration_inner_name: %s\n", $renamedId);
147147
}
148148
}
149149

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ private function parseDefinition($id, $service, $file)
235235
}
236236

237237
if (isset($service['decorates'])) {
238-
$renameId = isset($service['decoration-inner-name']) ? $service['decoration-inner-name'] : null;
238+
$renameId = isset($service['decoration_inner_name']) ? $service['decoration_inner_name'] : null;
239239
$definition->setDecoratedService($service['decorates'], $renameId);
240240
}
241241

src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services6.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ services:
3434
decorates: decorated
3535
decorator_service_with_name:
3636
decorates: decorated
37-
decoration-inner-name: decorated.pif-pouf
37+
decoration_inner_name: decorated.pif-pouf

src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/services9.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ services:
8787
decorator_service_with_name:
8888
class: stdClass
8989
decorates: decorated
90-
decoration-inner-name: decorated.pif-pouf
90+
decoration_inner_name: decorated.pif-pouf
9191
alias_for_foo: @foo
9292
alias_for_alias: @foo

0 commit comments

Comments
 (0)
0