Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bug #18491 [DependencyInjection] anonymous services are always privat…
…e (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[DependencyInjection] anonymous services are always private

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

Commits
-------

0a469a4 anonymous services are always private
  • Loading branch information
nicolas-grekas committed Apr 12, 2016
2 parents fd693e6 + 0a469a4 commit 689f27b
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -302,11 +302,7 @@ private function processAnonymousServices(\DOMDocument $xml, $file)
// give it a unique name
$id = sprintf('%s_%d', hash('sha256', $file), ++$count);
$node->setAttribute('id', $id);

if ($services = $this->getChildren($node, 'service')) {
$definitions[$id] = array($node, $file, true);
$services[0]->setAttribute('id', $id);
}
$definitions[$id] = array($node, $file, true);
}
}

Expand Down

0 comments on commit 689f27b

Please sign in to comment.