public function UpdateServiceProvider::register in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Update/UpdateServiceProvider.php \Drupal\Core\Update\UpdateServiceProvider::register()
Registers services to the container.
Parameters
ContainerBuilder $container: The ContainerBuilder to register services to.
Overrides ServiceProviderInterface::register
File
- core/
lib/ Drupal/ Core/ Update/ UpdateServiceProvider.php, line 24 - Contains \Drupal\Core\Update\UpdateServiceProvider.
Class
- UpdateServiceProvider
- Ensures for some services that they don't cache.
Namespace
Drupal\Core\UpdateCode
public function register(ContainerBuilder $container) {
$definition = new Definition('Drupal\\Core\\Cache\\NullBackend', [
'null',
]);
$container
->setDefinition('cache.null', $definition);
}