You are here

DataPolicyServiceProvider.php in Data Policy 8

Namespace

Drupal\data_policy

File

src/DataPolicyServiceProvider.php
View source
<?php

namespace Drupal\data_policy;

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
use Symfony\Component\DependencyInjection\Reference;

/**
 * Class DataPolicyServiceProvider.
 *
 * @package Drupal\data_policy
 */
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'));
  }

}

Classes

Namesort descending Description
DataPolicyServiceProvider Class DataPolicyServiceProvider.