You are here

class ConfigProviderServiceProvider in Configuration Provider 8.2

Same name and namespace in other branches
  1. 8 src/ConfigProviderServiceProvider.php \Drupal\config_provider\ConfigProviderServiceProvider

Service provider implementation for Configuration Provider.

Hierarchy

Expanded class hierarchy of ConfigProviderServiceProvider

File

src/ConfigProviderServiceProvider.php, line 13

Namespace

Drupal\config_provider
View source
class ConfigProviderServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {

    // Override the config.installer class with a new class.
    $definition = $container
      ->getDefinition('config.installer');
    $definition
      ->setClass('Drupal\\config_provider\\ConfigProviderConfigInstaller');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigProviderServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1