Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[DI] Autowiring exception thrown when inlined service is removed#22993
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
…exception to be thrown
3375e6b todd82f76Compareweaverryan commentedMay 31, 2017
Second commit actually removes the |
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
👍 (including the "BC break" with .0 nobody can possibly rely on this already, and even if, that'd be fresh code, easy to update)
fabpot commentedMay 31, 2017
Thank you@weaverryan. |
…emoved (weaverryan)This PR was squashed before being merged into the 3.3 branch (closes#22993).Discussion----------[DI] Autowiring exception thrown when inlined service is removed| Q | A| ------------- | ---| Branch? | 3.3| Bug fix? | yes| New feature? | no| BC breaks? | yes| Deprecations? | yes (on a new & internal method)| Tests pass? | yes| Fixed tickets |#22977| License | MIT| Doc PR | n/aWe suppress autowiring exceptions if a service is ultimately removed from the container. This fixes a bug where we incorrectly report that a service was NOT removed, when really, it WAS removed. This happens when `ServiceA` is inlined in `ServiceB`... but then `ServiceB` is removed from the container for being unused.Commits-------793b9a0 [DI] Autowiring exception thrown when inlined service is removed
Uh oh!
There was an error while loading.Please reload this page.
We suppress autowiring exceptions if a service is ultimately removed from the container. This fixes a bug where we incorrectly report that a service was NOT removed, when really, it WAS removed. This happens when
ServiceAis inlined inServiceB... but thenServiceBis removed from the container for being unused.