custom/plugins/BilobaIntlTranslation/src/Components/Messages/ProductEntityMessageHandler.php line 18

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. /**
  3.  * (c) 2021 - Biloba IT Balleyer & Lohrmann GbR
  4.  * All Rights reserved
  5.  *
  6.  * Contact: Biloba IT <support@biloba-it.de>
  7.  */
  8. namespace Biloba\IntlTranslation\Components\Messages;
  9. use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
  10. use Symfony\Component\Messenger\MessageBusInterface;
  11. use Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface;
  12. use Biloba\IntlTranslation\Service\TranslatorService;
  13. use Shopware\Core\System\SystemConfig\SystemConfigService;
  14. use Psr\Log\LoggerInterface;
  15. use Biloba\IntlTranslation\Service\ConfigService;
  16. class ProductEntityMessageHandler extends GenericEntityMessageHandler {
  17.     public function __construct(RewindableGenerator $entityHandlers,
  18.             MessageBusInterface $messageBus
  19.             EntityRepositoryInterface $productRepository
  20.             TranslatorService $translatorService,
  21.             SystemConfigService $systemConfigService,
  22.             ConfigService $configService,
  23.             LoggerInterface $log)
  24.     {
  25.         parent::__construct($entityHandlers$messageBus$productRepository$translatorService$systemConfigService$configService$log);
  26.     }
  27.     
  28.     public static function getHandledMessages(): iterable
  29.     {
  30.         return [
  31.             ProductEntityMessage::class,
  32.         ];
  33.     }
  34. }