Problem/Motivation
In #3427741: Notify downstream users that ContainerAware is going away we deprecated support for Symfony's ContainerAwareInterface and ContainerAwareTrait as they are removed from Symfony 7.
This issue exists to finally remove that support in Drupal 11.
Steps to reproduce
Proposed resolution
Commit these issues first:
#3416357: Convert QueueFactory to use a service locator
Remove all remaining references to ContainerAwareInterface.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3431362
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:
- 3431362-remove-support-for
changes, plain diff MR !7111
Comments
Comment #2
spokjeComment #3
gábor hojtsyThere is also #3397519: [META] Reduce use of ContainerAware classes where possible, how are the two related? :)
Comment #4
longwaveReparenting this under the "reduce" meta, which when reduced to zero can be closed as fixed.
Comment #5
longwaveIn fact this doesn't need to be postponed, we can remove the remaining support except for LoggerChannelFactory in this issue now.
Comment #6
spokjeComment #8
spokjeFive references left for
ContainerAwareInterfaceafter this MR.They're all needed to keep
LoggerChannelFactoryworking for now.Comment #9
longwaveOne case where we lost test coverage and can replace it with something else, but otherwise this looks good.
Comment #10
spokjeThanks @longwave, adjusted test.
Comment #11
spokjeComment #12
spokjeGrmbl...
Comment #13
longwaveThanks, looks great.
Comment #14
alexpottCommitted a058be4 and pushed to 11.x. Thanks!