Problem/Motivation
In #3392616-5: Update to Symfony 6.4 we've found out that the Symfony\Component\DependencyInjection\ContainerAwareTrait and Symfony\Component\DependencyInjection\ContainerAwareInterface are being deprecated in Symfony 6.4 and removed in 7.0.
ClassResolver and EntityTypeManager depend on retrieving any arbitrary service from the container, so they still need full access to the container.
Steps to reproduce
Proposed resolution
Inject service_container as an argument instead of making them ContainerAware, based on work by @Spokje in #3397522: Fork Symfony's ContainerAwareTrait and ContainerAwareInterface into core
Merge request link
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3419909
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:
Comments
Comment #3
longwaveCherry-picked the relevant commits from @Spokje's work and fixed conflicts.
Comment #5
spokjeI like this, but hey, I boilerplated/wrote most of it, so I'm probably not the right one to RTBC this...
To make this comment some kinda useful, I've created a CR and updated the MR to point to it.
Comment #6
smustgrave commentedThanks @Spokje the CR helped!
Comment #8
spokje@catch You might have missed putting this on Fixed after the commit?
Comment #9
catchOops yes. Marking fixed!