Problem/Motivation
container.trait was added to help ContainerAware services.
Injecting the entire container is discouraged, dependency injection and service locators are preferred instead nowadays, and ContainerAwareTrait was deprecated in #3427741: Notify downstream users that ContainerAware is going away
We did not remove the container.trait definition at the time, but it's probably time to clean it up now.
Steps to reproduce
Proposed resolution
Remove container.trait from core.services.yml.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3618385
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3618385-remove-container-trait
changes, plain diff MR !16782
Comments
Comment #2
longwaveI don't think it's possible to deprecate an abstract service so I think we just drop this in main and forget about it.
Comment #5
longwaveComment #6
longwaveComment #7
smustgrave commentedSeems straight forward
Comment #8
catchI was wondering if we could make it non-abstact in 11.x and deprecate it there, but that seems like as bad of a change as just dropping it in main so let's just do that.
Committed/pushed to main, thanks!