You are here

class DataPolicyServiceProvider in Data Policy 8

Class DataPolicyServiceProvider.

@package Drupal\data_policy

Hierarchy

Expanded class hierarchy of DataPolicyServiceProvider

File

src/DataPolicyServiceProvider.php, line 14

Namespace

Drupal\data_policy
View source
class DataPolicyServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $container
      ->getDefinition('module_installer')
      ->setClass(DataPolicyModuleInstaller::class)
      ->addArgument(new Reference('entity_type.manager'))
      ->addArgument(new Reference('config.factory'));
  }

}

Members

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