You are here

public function ClientManager::__construct in Elasticsearch Connector 8.7

Same name and namespace in other branches
  1. 8.2 src/ElasticSearch/ClientManager.php \Drupal\elasticsearch_connector\ElasticSearch\ClientManager::__construct()
  2. 8.5 src/ElasticSearch/ClientManager.php \Drupal\elasticsearch_connector\ElasticSearch\ClientManager::__construct()
  3. 8.6 src/ElasticSearch/ClientManager.php \Drupal\elasticsearch_connector\ElasticSearch\ClientManager::__construct()

Create a client manager.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: Module handler service.

\nodespark\DESConnector\ClientFactoryInterface $clientManagerFactory: Client factory.

Overrides ClientManagerInterface::__construct

File

src/ElasticSearch/ClientManager.php, line 38

Class

ClientManager
Class ClientManager.

Namespace

Drupal\elasticsearch_connector\ElasticSearch

Code

public function __construct(ModuleHandlerInterface $module_handler, ClientFactoryInterface $clientManagerFactory) {
  $this->moduleHandler = $module_handler;
  $this->clientManagerFactory = $clientManagerFactory;
}