custom/plugins/MegasolBase/src/MegasolBase.php line 11

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Megasol\MegasolBase;
  4. use Shopware\Core\Framework\Plugin;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Indexing\EntityIndexerRegistry;
  6. use Shopware\Core\Framework\Plugin\Context\ActivateContext;
  7. class MegasolBase extends Plugin
  8. {
  9.     public const IDENTIFY 'megasol';
  10.     public const SALES_CHANNEL_POS_EXTENSION self::IDENTIFY.'PosSalesChannel';
  11.     public const PRODUCT_LOG_POS_EXTENSION self::IDENTIFY.'PosLog';
  12.     public function activate(ActivateContext $activateContext): void
  13.     {
  14.         $registry $this->container->get(EntityIndexerRegistry::class);
  15.         $registry->sendIndexingMessage(['customer.indexer']);
  16.     }
  17. }