<?php
declare(strict_types=1);
namespace Megasol\MegasolBase;
use Shopware\Core\Framework\Plugin;
use Shopware\Core\Framework\DataAbstractionLayer\Indexing\EntityIndexerRegistry;
use Shopware\Core\Framework\Plugin\Context\ActivateContext;
class MegasolBase extends Plugin
{
public const IDENTIFY = 'megasol';
public const SALES_CHANNEL_POS_EXTENSION = self::IDENTIFY.'PosSalesChannel';
public const PRODUCT_LOG_POS_EXTENSION = self::IDENTIFY.'PosLog';
public function activate(ActivateContext $activateContext): void
{
$registry = $this->container->get(EntityIndexerRegistry::class);
$registry->sendIndexingMessage(['customer.indexer']);
}
}