public function UpdateServiceProvider::alter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Update/UpdateServiceProvider.php \Drupal\Core\Update\UpdateServiceProvider::alter()
Modifies existing service definitions.
Parameters
ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.
Overrides ServiceModifierInterface::alter
File
- core/
lib/ Drupal/ Core/ Update/ UpdateServiceProvider.php, line 32 - Contains \Drupal\Core\Update\UpdateServiceProvider.
Class
- UpdateServiceProvider
- Ensures for some services that they don't cache.
Namespace
Drupal\Core\UpdateCode
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('asset.resolver');
$argument = new Reference('cache.null');
$definition
->replaceArgument(5, $argument);
$definition = $container
->getDefinition('library.discovery.collector');
$argument = new Reference('cache.null');
$definition
->replaceArgument(0, $argument);
}