6 declare(strict_types=1);
37 return $this->getIndexerDataWithValidation($indexerId)[
'dependencies'];
46 $this->getIndexerDataWithValidation($indexerId);
48 foreach ($this->config->getIndexers() as
$id => $indexerData) {
49 if (array_search($indexerId, $indexerData[
'dependencies']) !==
false) {
63 private function getIndexerData(
string $indexerId): array
65 return $this->config->getIndexer($indexerId);
75 private function getIndexerDataWithValidation(
string $indexerId): array
77 $indexerData = $this->getIndexerData($indexerId);
78 if (!isset($indexerData[
'indexer_id']) || $indexerData[
'indexer_id'] != $indexerId) {
79 throw new NoSuchEntityException(
80 new Phrase(
"%1 indexer does not exist.", [$indexerId])
getIndexerIdsToRunBefore(string $indexerId)
getIndexerIdsToRunAfter(string $indexerId)
__construct(ConfigInterface $config)