public function __construct( private readonly SeoUrlUpdater
$seoUrlUpdater,
private readonly Connection
$connection,
private readonly EntityIndexerRegistry
$indexerRegistry ) { } public function detectSalesChannelEntryPoints(EntityWrittenContainerEvent
$event): void
{ $properties =
['navigationCategoryId', 'footerCategoryId', 'serviceCategoryId'
];
$salesChannelIds =
$event->
getPrimaryKeysWithPropertyChange(SalesChannelDefinition::ENTITY_NAME,
$properties);
if (empty($salesChannelIds)) { return;
} $this->indexerRegistry->
sendIndexingMessage(['category.indexer', 'product.indexer'
]);
} /**
* @return array<string, string|array{0: string, 1: int}|list<array{0: string, 1?: int}>>
*/