Use composite service instead of the default one to allow other tagged service to resolve the right product variant

This commit is contained in:
Francis Hilaire 2026-06-03 17:56:05 +02:00
parent 0ec47e718c
commit 6a7c5cf6e3
No known key found for this signature in database
GPG key ID: 3392F830BF33D421

View file

@ -102,7 +102,7 @@
id="sylius_shop.twig.component.product.summary"
class="Sylius\Bundle\ShopBundle\Twig\Component\Product\SummaryComponent"
>
<argument type="service" id="sylius.resolver.product_variant.default" />
<argument type="service" id="sylius.resolver.product_variant" />
<argument type="service" id="sylius.repository.product" />
<argument type="service" id="sylius.repository.product_variant" />