minor #22065 [DI] Fix PhpDumper generated doc block (nicolas-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[DI] Fix PhpDumper generated doc block

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

Commits
-------

58b3ee7 [DI] Fix PhpDumper generated doc block
This commit is contained in:
Nicolas Grekas 2017-03-20 09:47:13 +01:00
commit 5dd83adb1b
2 changed files with 4 additions and 1 deletions

View File

@ -628,7 +628,7 @@ EOF;
}
if ($definition->isAutowired()) {
$doc = <<<EOF
$doc .= <<<EOF
*
* This service is autowired.

View File

@ -33,6 +33,9 @@ class ProjectServiceContainer extends Container
/**
* Gets the 'foo' service.
*
* This service is shared.
* This method always returns the same instance of the service.
*
* This service is autowired.
*
* @return \Foo A Foo instance