You are here

public function ConfigImporter::__construct in Currency 8.3

Constructs a new instance.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface: The module handler.

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config_manager: THe typed config manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

src/ConfigImporter.php, line 72

Class

ConfigImporter
Provides a config importer.

Namespace

Drupal\currency

Code

public function __construct(ModuleHandlerInterface $module_handler, TypedConfigManagerInterface $typed_config_manager, EntityTypeManagerInterface $entity_type_manager) {
  $this->currencyResourceRepository = new ResourceRepository();
  $this->currencyStorage = $entity_type_manager
    ->getStorage('currency');
  $this->currencyLocaleStorage = $entity_type_manager
    ->getStorage('currency_locale');
  $this->moduleHandler = $module_handler;
  $this->typedConfigManager = $typed_config_manager;
}