Chris@0: setDefinition('cache.null', $definition); Chris@0: } Chris@0: Chris@0: /** Chris@0: * {@inheritdoc} Chris@0: */ Chris@0: public function alter(ContainerBuilder $container) { Chris@0: $definition = $container->getDefinition('asset.resolver'); Chris@0: $argument = new Reference('cache.null'); Chris@0: $definition->replaceArgument(5, $argument); Chris@0: Chris@0: $definition = $container->getDefinition('library.discovery.collector'); Chris@0: $argument = new Reference('cache.null'); Chris@0: $definition->replaceArgument(0, $argument); Chris@18: Chris@18: // Prevent the alias-based path processor, which requires a path_alias db Chris@18: // table, from being registered to the path processor manager. We do this by Chris@18: // removing the tags that the compiler pass looks for. This means the url Chris@18: // generator can safely be used during the database update process. Chris@18: if ($container->hasDefinition('path_processor_alias')) { Chris@18: $container->getDefinition('path_processor_alias') Chris@18: ->clearTag('path_processor_inbound') Chris@18: ->clearTag('path_processor_outbound'); Chris@18: } Chris@0: } Chris@0: Chris@0: }