Mercurial > hg > cmmr2012-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
30 $definition->replaceArgument(5, $argument); | 30 $definition->replaceArgument(5, $argument); |
31 | 31 |
32 $definition = $container->getDefinition('library.discovery.collector'); | 32 $definition = $container->getDefinition('library.discovery.collector'); |
33 $argument = new Reference('cache.null'); | 33 $argument = new Reference('cache.null'); |
34 $definition->replaceArgument(0, $argument); | 34 $definition->replaceArgument(0, $argument); |
35 | |
36 // Prevent the alias-based path processor, which requires a path_alias db | |
37 // table, from being registered to the path processor manager. We do this by | |
38 // removing the tags that the compiler pass looks for. This means the url | |
39 // generator can safely be used during the database update process. | |
40 if ($container->hasDefinition('path_processor_alias')) { | |
41 $container->getDefinition('path_processor_alias') | |
42 ->clearTag('path_processor_inbound') | |
43 ->clearTag('path_processor_outbound'); | |
44 } | |
35 } | 45 } |
36 | 46 |
37 } | 47 } |