custom/plugins/MoorlFoundation/src/Storefront/Subscriber/SalesChannelContextResolvedSubscriber.php line 23

  1. <?php declare(strict_types=1);
  2. namespace MoorlFoundation\Storefront\Subscriber;
  3. use Shopware\Core\Framework\DataAbstractionLayer\EntityRepository;
  4. use Shopware\Core\Framework\Routing\Event\SalesChannelContextResolvedEvent;
  5. use Shopware\Core\System\SystemConfig\SystemConfigService;
  6. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  7. class SalesChannelContextResolvedSubscriber implements EventSubscriberInterface
  8. {
  9.     public function __construct(private readonly SystemConfigService $systemConfigService, private readonly EntityRepository $cmsPageRepository)
  10.     {
  11.     }
  12.     public static function getSubscribedEvents(): array
  13.     {
  14.         return [
  15.             SalesChannelContextResolvedEvent::class => 'onSalesChannelContextResolvedEvent',
  16.         ];
  17.     }
  18.     public function onSalesChannelContextResolvedEvent(SalesChannelContextResolvedEvent $event): void
  19.     {
  20.     }
  21. }