Skip to content

Commit

Permalink
ENGCOM-8453: Item resolvers should be optional #30823
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldagama committed Apr 11, 2021
2 parents e604567 + 59e3f71 commit 0cf1568
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class ItemResolverComposite implements ItemResolverInterface
{
/** @var string[] */
private $itemResolvers = [];
private $itemResolvers;

/** @var ItemResolverInterface[] */
private $itemResolversInstances = [];
Expand Down
5 changes: 5 additions & 0 deletions app/code/Magento/Catalog/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,11 @@
</argument>
</arguments>
</type>
<type name="Magento\Catalog\Model\Product\Configuration\Item\ItemResolverComposite">
<arguments>
<argument name="itemResolvers" xsi:type="array"/>
</arguments>
</type>
<type name="Magento\Catalog\Api\ProductRepositoryInterface">
<plugin name="remove_images_from_gallery_after_removing_product"
type="Magento\Catalog\Plugin\RemoveImagesFromGalleryAfterRemovingProduct"/>
Expand Down

0 comments on commit 0cf1568

Please sign in to comment.