8000 [DependencyInjection] fix dumped YAML string · symfony/symfony@b1bb135 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1bb135

Browse files
committed
[DependencyInjection] fix dumped YAML string
1 parent 1dcf83c commit b1bb135

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private function addService($id, $definition)
8888
}
8989

9090
if ($definition->getFile()) {
91-
$code .= sprintf(" file: %s\n", $definition->getFile());
91+
$code .= sprintf(" file: %s\n", $this->dumper->dump($definition->getFile()));
9292
}
9393

9494
if ($definition->isSynthetic()) {
@@ -108,11 +108,11 @@ private function addService($id, $definition)
108108
}
109109

110110
if ($definition->getFactoryMethod()) {
111-
$code .= sprintf(" factory_method: %s\n", $definition->getFactoryMethod());
111+
$code .= sprintf(" factory_method: %s\n", $this->dumper->dump($definition->getFactoryMethod()));
112112
}
113113

114 8C27 114
if ($definition->getFactoryService()) {
115-
$code .= sprintf(" factory_service: %s\n", $definition->getFactoryService());
115+
$code .= sprintf(" factory_service: %s\n", $this->dumper->dump($definition->getFactoryService()));
116116
}
117117

118118
if ($definition->getArguments()) {
@@ -128,7 +128,7 @@ private function addService($id, $definition)
128128
}
129129

130130
if (ContainerInterface::SCOPE_CONTAINER !== $scope = $definition->getScope()) {
131-
$code .= sprintf(" scope: %s\n", $scope);
131+
$code .= sprintf(" scope: %s\n", $this->dumper->dump($scope));
132132
}
133133

134134
if ($callable = $definition->getConfigurator()) {

0 commit comments

Comments
 (0)
0