You are here

public function DataPolicyServiceProvider::alter in Data Policy 8

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

Overrides ServiceProviderBase::alter

File

src/DataPolicyServiceProvider.php, line 19

Class

DataPolicyServiceProvider
Class DataPolicyServiceProvider.

Namespace

Drupal\data_policy

Code

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