return [ UpdatePostFinishEvent::
class => 'runRegisteredIndexers',
FirstRunWizardFinishedEvent::
class => 'runRegisteredIndexers',
];
} /**
* @internal
*/
public function runRegisteredIndexers(): void
{ $queuedIndexers =
$this->indexerQueuer->
getIndexers();
if (empty($queuedIndexers)) { return;
} $this->indexerQueuer->
finishIndexer(array_keys($queuedIndexers));
foreach ($queuedIndexers as $indexerName =>
$options) { $indexer =
$this->indexerRegistry->
getIndexer($indexerName);
if ($indexer === null
) {