for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* File: IndexerProcessor.php
*
* @author Bartosz Kubicki [email protected]>
* @author Paweł Papke <[email protected]>
* @copyright Copyright (C) 2018 Lizard Media (http://lizardmedia.pl)
*/
namespace LizardMedia\AdminIndexer\Model;
use LizardMedia\AdminIndexer\Api\IndexerProcessorInterface;
use LizardMedia\AdminIndexer\Api\ReindexRunnerInterface;
use LizardMedia\AdminIndexer\Exception\ReindexFailureAggregateException;
* Class IndexerProcessor
* @package LizardMedia\AdminIndexer\Model
class IndexerProcessor implements IndexerProcessorInterface
{
* @var ReindexRunnerInterface
private $reindexRunner;
* IndexerProcessor constructor.
* @param ReindexRunnerInterface $reindexRunner
public function __construct(
ReindexRunnerInterface $reindexRunner
) {
$this->reindexRunner = $reindexRunner;
}
* {@inheritDoc}
public function process(string ...$indexerIds): void
$this->reindexRunner->run(...$indexerIds);