Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2023 at 15:04 UTC
Updated:
4 Apr 2024 at 19:24 UTC
Jump to comment: Most recent
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.
Although we can't get rid off all implementations and will need to fork those into core, we want to get rid of as many usage as possible. We have figured out ways to remove all uses so this is deprecated in Drupal 10 and will not be supported in Drupal 11.
This issue exists as a META to group all removal of usage.
#3416354: Inject services into LoggerChannelFactory
#3431362: Remove support for ContainerAwareInterface
Comments
Comment #2
spokjeAll children fixed.
Comment #3
alexpottThe child issues were resolved in 10.2.x
Comment #5
longwaveForgot this existed. This would be a better parent for many of the child issues I am creating than #3397522: Fork Symfony's ContainerAwareTrait and ContainerAwareInterface into core, so reopening.
Comment #6
andypostProbably
\Drupal\Core\DependencyInjection\ClassResolver::getInstanceFromDefinition()still should use deprecated interface for BCComment #7
andypostone more done #3420215: Remove ContainerAwareTrait from session middleware
Comment #8
longwaveReparenting as the existing parent is closed.
#3427741: Notify downstream users that ContainerAware is going away proposes deprecating the code mentioned in #6.
Comment #9
gábor hojtsyWhat else is left here? This the only issue left from the parent's issue summary. Also #3431362: Remove support for ContainerAwareInterface is linked from the parent, how are the two related?
Comment #10
longwaveReparented the final removal under this issue, updated the IS as we can actually remove all implementations here.
Comment #11
andypostAs fixed #3431362: Remove support for ContainerAwareInterface
The remaining one is good enough without meta - #3416354: Inject services into LoggerChannelFactory
Comment #12
catchJust committed #3416354: Inject services into LoggerChannelFactory too. Nice to get all these done!