di.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  9. <virtualType name="Magento\Review\Model\Session\Storage" type="Magento\Framework\Session\Storage">
  10. <arguments>
  11. <argument name="namespace" xsi:type="string">review</argument>
  12. </arguments>
  13. </virtualType>
  14. <virtualType name="Magento\Review\Model\Session" type="Magento\Framework\Session\Generic">
  15. <arguments>
  16. <argument name="storage" xsi:type="object">Magento\Review\Model\Session\Storage</argument>
  17. </arguments>
  18. </virtualType>
  19. <type name="Magento\Review\Controller\Product">
  20. <arguments>
  21. <argument name="reviewSession" xsi:type="object">Magento\Review\Model\Session</argument>
  22. </arguments>
  23. </type>
  24. <type name="Magento\Review\CustomerData\Review">
  25. <arguments>
  26. <argument name="reviewSession" xsi:type="object">Magento\Review\Model\Session</argument>
  27. </arguments>
  28. </type>
  29. <type name="Magento\Customer\CustomerData\SectionPoolInterface">
  30. <arguments>
  31. <argument name="sectionSourceMap" xsi:type="array">
  32. <item name="review" xsi:type="string">Magento\Review\CustomerData\Review</item>
  33. </argument>
  34. </arguments>
  35. </type>
  36. <type name="Magento\Framework\Url\SecurityInfo">
  37. <arguments>
  38. <argument name="secureUrlList" xsi:type="array">
  39. <item name="review_customer" xsi:type="string">/review/customer/</item>
  40. </argument>
  41. </arguments>
  42. </type>
  43. <type name="Magento\Catalog\Block\Product\Compare\ListCompare">
  44. <plugin name="reviewInitializer" type="Magento\Review\Block\Product\Compare\ListCompare\Plugin\Review" />
  45. </type>
  46. </config>