Skip to content

Commit b6a7692

Browse files
author
olysenko
committed
Merge remote-tracking branch 'origin/MAGETWO-52897' into pr
2 parents 055ae0f + 06a6750 commit b6a7692

File tree

1 file changed

+10
-0
lines changed
  • app/code/Magento/Downloadable/etc

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414
<type name="Magento\Catalog\Model\Product\CartConfiguration">
1515
<plugin name="Downloadable" type="Magento\Downloadable\Model\Product\CartConfiguration\Plugin\Downloadable" />
1616
</type>
17+
<virtualType name="context_for_downloadable" type="Magento\Framework\View\Element\Template\Context">
18+
<arguments>
19+
<argument name="urlBuilder" xsi:type="object">Magento\Framework\Url</argument>
20+
</arguments>
21+
</virtualType>
22+
<type name="Magento\Downloadable\Block\Sales\Order\Email\Items\Order\Downloadable">
23+
<arguments>
24+
<argument name="context" xsi:type="object">context_for_downloadable</argument>
25+
</arguments>
26+
</type>
1727
<type name="Magento\Catalog\Model\Product\TypeTransitionManager">
1828
<plugin name="downloadable_product_transition" type="Magento\Downloadable\Model\Product\TypeTransitionManager\Plugin\Downloadable" />
1929
<arguments>

0 commit comments

Comments
 (0)