You are here

public function UpdateServiceProvider::register in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\Update

Code

public function register(ContainerBuilder $container) {
  $definition = new Definition('Drupal\\Core\\Cache\\NullBackend', [
    'null',
  ]);
  $container
    ->setDefinition('cache.null', $definition);
}