From 789ba2aea92327c24f7c27d77573bae5d52ab36d Mon Sep 17 00:00:00 2001 From: jkindly Date: Tue, 25 Jun 2024 13:10:14 +0200 Subject: [PATCH] OP-321: PHPStan fix --- src/Importer/BlockImporter.php | 2 -- src/Resources/config/services/importer.xml | 1 - 2 files changed, 3 deletions(-) diff --git a/src/Importer/BlockImporter.php b/src/Importer/BlockImporter.php index d483de09..f2023280 100644 --- a/src/Importer/BlockImporter.php +++ b/src/Importer/BlockImporter.php @@ -25,7 +25,6 @@ public function __construct( private ResourceResolverInterface $blockResourceResolver, private ImporterCollectionsResolverInterface $importerCollectionsResolver, private ImporterChannelsResolverInterface $importerChannelsResolver, - private ImporterProductsResolverInterface $importerProductsResolver, ValidatorInterface $validator, private BlockRepositoryInterface $blockRepository, ) { @@ -43,7 +42,6 @@ public function import(array $row): void $this->importerCollectionsResolver->resolve($block, $this->getColumnValue(self::COLLECTIONS_COLUMN, $row)); $this->importerChannelsResolver->resolve($block, $this->getColumnValue(self::CHANNELS_COLUMN, $row)); - $this->importerProductsResolver->resolve($block, $this->getColumnValue(self::PRODUCTS_COLUMN, $row)); $this->validateResource($block, ['bitbag']); $this->blockRepository->add($block); diff --git a/src/Resources/config/services/importer.xml b/src/Resources/config/services/importer.xml index 5903792b..2857f77a 100644 --- a/src/Resources/config/services/importer.xml +++ b/src/Resources/config/services/importer.xml @@ -24,7 +24,6 @@ -