Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2024 at 20:50 UTC
Updated:
14 Mar 2024 at 03:09 UTC
Jump to comment: Most recent
interface DrupalKernelInterface extends HttpKernelInterface, ContainerAwareInterface {
but ContainerAwareInterface is deprecated in Symfony 6.4 and removed from Symfony 7.0.
However, it turns out that DrupalKernel::setContainer() is not even called any more.
Remove the interface, setContainer() method, and a related outdated code block.
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 #2
longwaveDrupalKernel::initializeContainer()does this:but
KernelTestBase::setUp()hasn't calledsetContainer()since 2017: #2880911: Remove unused KernelTestBase::getCompiledContainerBuilder()Maybe this is just dead code?
Comment #4
longwaveLooks like this is no longer useful.
Comment #5
andypostI think it's good clean-up of deadcode but interface change needs CR
Comment #6
longwaveAdded https://www.drupal.org/node/3424376 though I think it is super unlikely anyone will be affected by this, it was only added for KernelTestBase and is unused now for over six years.
Comment #7
andypostThank you! Looks nothing to add)
Comment #9
catchCommitted/pushed to 11.x, thanks!
Comment #10
longwaveAs dead code IMHO this can go back to 10.3.x.
Comment #11
catchIt could if it cherry-picked, but it doesn't - and didn't seem worth spending the effort to backport it.
Comment #12
quietone commentedThis was only fixed in 11.x
And published the CR