8000 [DependencyInjection] anonymous services are always private by xabbuh · Pull Request #18491 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[DependencyInjection] anonymous services are always private #18491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2016

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented Apr 9, 2016
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

@@ -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')) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem like it made much sense (was introduced in #10619).

@HeahDude
Copy link
Contributor
HeahDude commented Apr 9, 2016

Thanks! It's been an hour since I'm trying to understand what's wrong with this :)

This change you mention might be useless after 9802a41.

@xabbuh xabbuh added the Ready label Apr 9, 2016
@nicolas-grekas
Copy link
Member

👍

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 0a469a4 into symfony:2.7 Apr 12, 2016
nicolas-grekas added a commit that referenced this pull request Apr 12, 2016
…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
@xabbuh xabbuh deleted the anonymous-services-private branch April 12, 2016 17:47
This was referenced Apr 29, 2016
@DHager
Copy link
DHager commented May 4, 2016

Reporting a BC break with #18703, although perhaps you could argue that our application had a long-standing bug that was simply revealed. 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0