private readonly MessageBusInterface
$messageBus,
private readonly EventDispatcherInterface
$dispatcher ) { } /**
* @internal
*/
public function __invoke(EntityIndexingMessage|IterateEntityIndexerMessage
$message): void
{ if ($message instanceof EntityIndexingMessage
) { $indexer =
$this->
getIndexer($message->
getIndexer());
if ($indexer) { $indexer->
handle($message);
} return;
} if ($message instanceof IterateEntityIndexerMessage
) { $next =
$this->
iterateIndexer($message->
getIndexer(),
$message->
getOffset(), true,
$message->
getSkip());