diff core/lib/Drupal/Core/Update/UpdateServiceProvider.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Update/UpdateServiceProvider.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/lib/Drupal/Core/Update/UpdateServiceProvider.php	Thu May 09 15:34:47 2019 +0100
@@ -32,6 +32,16 @@
     $definition = $container->getDefinition('library.discovery.collector');
     $argument = new Reference('cache.null');
     $definition->replaceArgument(0, $argument);
+
+    // Prevent the alias-based path processor, which requires a path_alias db
+    // table, from being registered to the path processor manager. We do this by
+    // removing the tags that the compiler pass looks for. This means the url
+    // generator can safely be used during the database update process.
+    if ($container->hasDefinition('path_processor_alias')) {
+      $container->getDefinition('path_processor_alias')
+        ->clearTag('path_processor_inbound')
+        ->clearTag('path_processor_outbound');
+    }
   }
 
 }