$this->config =
$config;
} public function __invoke(AdminSearchIndexingMessage
$message): void
{ $indexer =
$this->
getIndexer($message->
getEntity());
$documents =
$indexer->
fetch($message->
getIds());
$this->
push($indexer,
$message->
getIndices(),
$documents,
$message->
getIds());
} public static function getSubscribedEvents(): array
{ return [ EntityWrittenContainerEvent::
class => [ ['refresh', -1000
],
],
];
}