Newscoop\Search\Indexer::__construct PHP Method

__construct() public method

public __construct ( Symfony\Component\DependencyInjection\Container $container, Newscoop\Search\ServiceInterface $service, Newscoop\Search\RepositoryInterface $repository = null, $indexerName )
$container Symfony\Component\DependencyInjection\Container
$service Newscoop\Search\ServiceInterface
$repository Newscoop\Search\RepositoryInterface
    public function __construct(Container $container, ServiceInterface $service, RepositoryInterface $repository = null, $indexerName)
    {
        $this->container = $container;
        $this->service = $service;
        $this->repository = $repository;
        $this->name = $indexerName;
        $this->indexClients = $this->getIndexClients();
    }