custom/plugins/XantenGuestReviews/src/Storefront/Subscriber/ProductReviewsSubscriber.php line 30

Open in your IDE?
  1. <?php
  2. namespace XantenGuestReviews\Storefront\Subscriber;
  3. use Shopware\Core\System\SystemConfig\SystemConfigService;
  4. use Shopware\Storefront\Page\Product\Review\ProductReviewsLoadedEvent;
  5. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  6. class ProductReviewsSubscriber implements EventSubscriberInterface
  7. {
  8.     /**
  9.      * @var SystemConfigService
  10.      */
  11.     private $config;
  12.     public function __construct(SystemConfigService $config)
  13.     {
  14.         $this->config $config;
  15.     }
  16.     public static function getSubscribedEvents()
  17.     {
  18.         return [
  19.             ProductReviewsLoadedEvent::class => [
  20.                 ['getResources'],
  21.             ],
  22.         ];
  23.     }
  24.     public function getResources(ProductReviewsLoadedEvent $event)
  25.     {
  26.     }
  27. }