From dd84a8b32e66ed3bddbef5836f5dfdfcc6853d0d Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Sat, 21 Dec 2024 12:36:09 +0100 Subject: [PATCH] Update core patch --- patches/d10-4.json | 2 +- patches/d10/3492453.diff | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/patches/d10-4.json b/patches/d10-4.json index e453976..11c2beb 100644 --- a/patches/d10-4.json +++ b/patches/d10-4.json @@ -82,7 +82,7 @@ "#2849279 Inconsistent changed timestamps when moderated entity": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/2849279.patch", "#3043725 Provide a Entity Handler for user cancellation": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3043725-104.diff", "#3473763 locale_string_is_safe should accept \"<front>\" as being safe": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3473763.diff", - "#3492453 Memory leak in DrupalKernel when installing modules": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3492453.diff" + "#3492453 Memory leak in DrupalKernel when installing modules": "https://gitlab.lakedrops.com/composer/plugin/drupal-environment/-/raw/main/patches/d10/3492453.diff?v=2" }, "drupal/dashboards": { "#3366586 Shortcut error": "https://git.drupalcode.org/project/dashboards/-/merge_requests/26.diff" diff --git a/patches/d10/3492453.diff b/patches/d10/3492453.diff index 2e69c5f..1aa3b1b 100644 --- a/patches/d10/3492453.diff +++ b/patches/d10/3492453.diff @@ -4,16 +4,16 @@ index 8f4f1c760dee0882ad0cff4f29dd8a5c3fe5d9c8..23f329eff551b67d86f8e2c69ebe7d26 +++ b/core/lib/Drupal/Core/Installer/InstallerKernel.php @@ -3,6 +3,7 @@ namespace Drupal\Core\Installer; - + use Drupal\Core\DrupalKernel; +use Symfony\Component\DependencyInjection\ContainerInterface; - + /** * Extend DrupalKernel to handle force some kernel behaviors. -@@ -83,4 +84,17 @@ public static function installationAttempted() { +@@ -83,4 +84,18 @@ public static function installationAttempted() { return isset($GLOBALS['install_state']) && empty($GLOBALS['install_state']['installation_finished']); } - + + /** + * {@inheritdoc} + */ @@ -25,6 +25,7 @@ index 8f4f1c760dee0882ad0cff4f29dd8a5c3fe5d9c8..23f329eff551b67d86f8e2c69ebe7d26 + // when multiple modules are being installed. + // @todo Move this to the parent class after https://www.drupal.org/i/2066993 + $this->container?->reset(); ++ $container->set('kernel', $this); + } + } -- GitLab