You are here

public function SearchApiSolrDevelCommands::__construct in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x modules/search_api_solr_devel/src/Commands/SearchApiSolrDevelCommands.php \Drupal\search_api_solr_devel\Commands\SearchApiSolrDevelCommands::__construct()

Constructs a SearchApiSolrCommands object.

Parameters

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

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

modules/search_api_solr_devel/src/Commands/SearchApiSolrDevelCommands.php, line 38

Class

SearchApiSolrDevelCommands
Defines Drush commands for the Search API Solr Devel.

Namespace

Drupal\search_api_solr_devel\Commands

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, ModuleHandlerInterface $moduleHandler, EventDispatcherInterface $eventDispatcher) {
  parent::__construct();
  $this->commandHelper = new SolrCommandHelper($entityTypeManager, $moduleHandler, $eventDispatcher, 'dt');
}