Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[DI] Throw accurate failures when accessing removed services#24484
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
sroze commentedOct 8, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Shouldn't we keep these synthetic and removed IDs in the container only for debug environments? Because here the value is only DX and the container is in theory taking more memory than before. |
nicolas-grekas commentedOct 8, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Introducing a different behavior between debug and non-debug is something that could led to subtle bugs, so should be prevented as much as possible. |
Thank you@nicolas-grekas. |
…rvices (nicolas-grekas)This PR was merged into the 3.4 branch.Discussion----------[DI] Throw accurate failures when accessing removed services| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#24444| License | MIT| Doc PR | -See linked issue.This will throw a useful message when accessing a removed service.When setting a removed service, a deprecation notice will be thrown also so that in master we can throw an exception then.Commits-------fe7f26d [DI] Throw accurate failures when accessing removed services
See linked issue.
This will throw a useful message when accessing a removed service.
When setting a removed service, a deprecation notice will be thrown also so that in master we can throw an exception then.