Skip to content

Commit 59e3f71

Browse files
ENGCOM-8453: Item resolvers should be optional #30823
- Merge Pull Request #30823 from thomas-kl1/magento2:patch-2 - Merged commits: 1. 8ed5082 2. 8a569ee
2 parents a4071d4 + 8a569ee commit 59e3f71

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/code/Magento/Catalog/Model/Product/Configuration/Item/ItemResolverComposite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class ItemResolverComposite implements ItemResolverInterface
1717
{
1818
/** @var string[] */
19-
private $itemResolvers = [];
19+
private $itemResolvers;
2020

2121
/** @var ItemResolverInterface[] */
2222
private $itemResolversInstances = [];

app/code/Magento/Catalog/etc/di.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,11 @@
13191319
</argument>
13201320
</arguments>
13211321
</type>
1322+
<type name="Magento\Catalog\Model\Product\Configuration\Item\ItemResolverComposite">
1323+
<arguments>
1324+
<argument name="itemResolvers" xsi:type="array"/>
1325+
</arguments>
1326+
</type>
13221327
<type name="Magento\Catalog\Api\ProductRepositoryInterface">
13231328
<plugin name="remove_images_from_gallery_after_removing_product"
13241329
type="Magento\Catalog\Plugin\RemoveImagesFromGalleryAfterRemovingProduct"/>

0 commit comments

Comments
 (0)