indicesManager() public method

public indicesManager ( ) : IndicesManager
return ElasticSearcher\Managers\IndicesManager
 /**
  * @param array $indices
  */
 protected function searchInIndices(array $indices)
 {
     foreach ($indices as $index) {
         $index = $this->searcher->indicesManager()->getRegistered($index);
         $this->indices[] = $index->getName();
     }
     // Remove doubles.
     $this->indices = array_unique($this->indices);
 }
<?php

require '../tests/bootstrap.php';
use ElasticSearcher\Environment;
use ElasticSearcher\ElasticSearcher;
$env = new Environment(['hosts' => [ELASTICSEARCH_HOST]]);
$searcher = new ElasticSearcher($env);
// Register indexes.
$moviesIndex = new MoviesIndex();
$searcher->indicesManager()->register($moviesIndex);