You are here

public function ConfigOverride::register in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Installer/ConfigOverride.php \Drupal\Core\Installer\ConfigOverride::register()

Registers services to the container.

Parameters

ContainerBuilder $container: The ContainerBuilder to register services to.

Overrides ServiceProviderInterface::register

File

core/lib/Drupal/Core/Installer/ConfigOverride.php, line 19

Class

ConfigOverride
Override configuration during the installer.

Namespace

Drupal\Core\Installer

Code

public function register(ContainerBuilder $container) {

  // Register this class so that it can override configuration.
  $container
    ->register('core.install_config_override', static::class)
    ->addTag('config.factory.override');
}