Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #18137 Autowiring the concrete class too - consistent with behavi…
…or of other services (weaverryan) This PR was merged into the 2.8 branch. Discussion ---------- Autowiring the concrete class too - consistent with behavior of other services | Q | A | ------------- | --- | Branch | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18132 | License | MIT | Doc PR | n/a This follows #17261. Without this, if you use the concrete class `Container`, it doesn't autowire, so it creates a *new* one. That is certainly not what the end-user wants, and it's a serious WTF :). We can talk all day long about not injecting the container and type-hinting interfaces, but this is needed to be consistent with how all the other services in the container work and to avoid this odd behavior. Thanks! Commits ------- 2ea3f68 Autowiring the concrete class too - consistent with behavior of other services
- Loading branch information