Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

78 строки
3.4 KiB

  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. <type name="Magento\CatalogGraphQl\Model\ProductInterfaceTypeResolverComposite">
  10. <arguments>
  11. <argument name="productTypeNameResolvers" xsi:type="array">
  12. <item name="downloadable_product_type_resolver" xsi:type="object">Magento\DownloadableGraphQl\Model\DownloadableProductTypeResolver</item>
  13. </argument>
  14. </arguments>
  15. </type>
  16. <type name="Magento\Framework\GraphQl\Schema\Type\Enum\DefaultDataMapper">
  17. <arguments>
  18. <argument name="map" xsi:type="array">
  19. <item name="DownloadableFileTypeEnum" xsi:type="array">
  20. <item name="file" xsi:type="string">file</item>
  21. <item name="url" xsi:type="string">url</item>
  22. </item>
  23. </argument>
  24. </arguments>
  25. </type>
  26. <type name="Magento\Framework\GraphQl\Schema\Type\Entity\DefaultMapper">
  27. <arguments>
  28. <argument name="map" xsi:type="array">
  29. <item name="catalog_product" xsi:type="array">
  30. <item name="downloadable" xsi:type="string">DownloadableProduct</item>
  31. </item>
  32. </argument>
  33. </arguments>
  34. </type>
  35. <type name="Magento\QuoteGraphQl\Model\Cart\BuyRequest\BuyRequestBuilder">
  36. <arguments>
  37. <argument name="providers" xsi:type="array">
  38. <item name="downloadable_links" xsi:type="object">Magento\DownloadableGraphQl\Model\Cart\BuyRequest\DownloadableLinksDataProvider</item>
  39. </argument>
  40. </arguments>
  41. </type>
  42. <type name="Magento\SalesGraphQl\Model\TypeResolver\OrderItem">
  43. <arguments>
  44. <argument name="productTypeMap" xsi:type="array">
  45. <item name="downloadable" xsi:type="string">DownloadableOrderItem</item>
  46. </argument>
  47. </arguments>
  48. </type>
  49. <type name="Magento\SalesGraphQl\Model\TypeResolver\InvoiceItem">
  50. <arguments>
  51. <argument name="productTypeMap" xsi:type="array">
  52. <item name="downloadable" xsi:type="string">DownloadableInvoiceItem</item>
  53. </argument>
  54. </arguments>
  55. </type>
  56. <type name="Magento\SalesGraphQl\Model\TypeResolver\CreditMemoItem">
  57. <arguments>
  58. <argument name="productTypeMap" xsi:type="array">
  59. <item name="downloadable" xsi:type="string">DownloadableCreditMemoItem</item>
  60. </argument>
  61. </arguments>
  62. </type>
  63. <type name="Magento\WishlistGraphQl\Model\Resolver\Type\WishlistItemType">
  64. <arguments>
  65. <argument name="supportedTypes" xsi:type="array">
  66. <item name="downloadable" xsi:type="string">DownloadableWishlistItem</item>
  67. </argument>
  68. </arguments>
  69. </type>
  70. <type name="Magento\UrlRewriteGraphQl\Model\RoutableInterfaceTypeResolver">
  71. <arguments>
  72. <argument name="productTypeNameResolvers" xsi:type="array">
  73. <item name="downloadable_product_type_resolver" xsi:type="object">Magento\DownloadableGraphQl\Model\DownloadableProductTypeResolver</item>
  74. </argument>
  75. </arguments>
  76. </type>
  77. </config>