Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The Drupal\Core\DependencyInjection\ContainerBuilder
class can be simplified now that Drupal is using Symfony 2.2.0.
Proposed resolution
The patch removes the obsolete code.
Comment | File | Size | Author |
---|---|---|---|
#11 | container-builder-simplification-11.patch | 6.35 KB | fabpot |
#5 | container-builder-simplification.patch | 4.52 KB | fabpot |
container-builder-simplification.patch | 3.32 KB | fabpot | |
Comments
Comment #1
fabpot CreditAttribution: fabpot commentedComment #3
fabpot CreditAttribution: fabpot commentedcontainer-builder-simplification.patch queued for re-testing.
Comment #5
fabpot CreditAttribution: fabpot commentedComment #6
fabpot CreditAttribution: fabpot commentedComment #8
aspilicious CreditAttribution: aspilicious commentedWhen I use the simplytest.me button the installation works but when I click on the "go to my site" button I get a white page. After refreshing the site is up and running.
Maybe that is causing these failures.
Comment #9
sunOh, possibly important detail. Potentially means that
A) the container fails to compile upon first attempt.
B) an already compiled + dumped container fails to reload/initialize.
Hm. I thought the idea of the upstream patches was to allow
Container::set()
to work even on a frozen container?(This might circle back into B) above.)
Comment #10
fabpot CreditAttribution: fabpot commentedOk, I've just found why it does not work. That's tough. Actually, there are many problems with the current implementation. I will provide a patch for these issues soon.
Comment #11
fabpot CreditAttribution: fabpot commentedLet's see if I got this right.
Comment #13
fabpot CreditAttribution: fabpot commented#11: container-builder-simplification-11.patch queued for re-testing.
Comment #15
mgiffordComment #24
longwaveThis all seems obsolete, we are two major versions of Symfony ahead now and nothing in the patch is relevant any more.