8000 [FrameworkBundle] prevent calling get() for service_container service by xabbuh · Pull Request #18730 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] prevent calling get() for service_container service #18730

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
May 9, 2016

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented May 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

This change will simply fix the tests once #18728 gets merged. An alternative approach would be to compile the container so that the code would still work even for services that have been set directly using set(). However, compiling the container in a descriptor imo is an unexpected side effect which I tried to avoid here.

@fabpot
Copy link
Member
fabpot commented May 9, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit 2d46bd4 into symfony:2.7 May 9, 2016
fabpot added a commit that referenced this pull request May 9, 2016
…ner service (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] prevent calling get() for service_container service

| 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        |

This change will simply fix the tests once #18728 gets merged. An alternative approach would be to compile the container so that the code would still work even for services that have been set directly using `set()`. However, compiling the container in a descriptor imo is an unexpected side effect which I tried to avoid here.

Commits
-------

2d46bd4 prevent calling get() for service_container service
@xabbuh xabbuh deleted the describe-service-container branch May 9, 2016 20:07
This was referenced May 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0