You are here

public function ConfigSelector::__construct in Configuration selector 8.2

Same name and namespace in other branches
  1. 8 src/ConfigSelector.php \Drupal\config_selector\ConfigSelector::__construct()

ConfigSelector constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Config\ConfigManagerInterface $config_manager: The config manager.

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

\Psr\Log\LoggerInterface $logger: The logger.

\Drupal\Core\State\StateInterface $state: The state service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

File

src/ConfigSelector.php, line 108

Class

ConfigSelector
Selects configuration to enable after a module install or uninstall.

Namespace

Drupal\config_selector

Code

public function __construct(ConfigFactoryInterface $config_factory, ConfigManagerInterface $config_manager, EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger, StateInterface $state, MessengerInterface $messenger) {
  $this->configFactory = $config_factory;
  $this->configManager = $config_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger;
  $this->state = $state;
  $this->messenger = $messenger;
}