Permalink
Browse files

bug #27716 [DI] fix dumping deprecated service in yaml (nicolas-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[DI] fix dumping deprecated service in yaml

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

411be25 [DI] fix dumping deprecated service in yaml
  • Loading branch information...
nicolas-grekas committed Jun 26, 2018
2 parents d59f210 + 411be25 commit 1371b8f05a933aa3dba882de7203533ab3496ecb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php
@@ -99,7 +99,7 @@ private function addService($id, Definition $definition)
}
if ($definition->isDeprecated()) {
$code .= sprintf(" deprecated: %s\n", $definition->getDeprecationMessage('%service_id%'));
$code .= sprintf(" deprecated: %s\n", $this->dumper->dump($definition->getDeprecationMessage('%service_id%')));
}
if ($definition->isAutowired()) {

0 comments on commit 1371b8f

Please sign in to comment.