This repository has been archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 155
/
di.xml
98 lines (98 loc) · 6.18 KB
/
di.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\Catalog\Model\Product\Option\Type\Date" type="Magento\CatalogGraphQl\Model\Product\Option\DateType" />
<type name="Magento\CatalogGraphQl\Model\ProductInterfaceTypeResolverComposite">
<arguments>
<argument name="productTypeNameResolvers" xsi:type="array">
<item name="catalog_type_resolver" xsi:type="object">Magento\CatalogGraphQl\Model\CatalogProductTypeResolver</item>
</argument>
</arguments>
</type>
<type name="Magento\CatalogGraphQl\Model\ProductLinkTypeResolverComposite">
<arguments>
<argument name="productLinksTypeNameResolvers" xsi:type="array">
<item name="catalog_product_link_type_resolver" xsi:type="object">Magento\CatalogGraphQl\Model\ProductLinksTypeResolver</item>
</argument>
</arguments>
</type>
<type name="Magento\CatalogGraphQl\Model\LayerFilterItemTypeResolverComposite">
<arguments>
<argument name="typeResolvers" xsi:type="array">
<item name="layer_filter_item" xsi:type="object">Magento\CatalogGraphQl\Model\LayerFilterItemTypeResolver</item>
</argument>
</arguments>
</type>
<type name="Magento\Framework\GraphQl\Schema\Type\Entity\DefaultMapper">
<arguments>
<argument name="map" xsi:type="array">
<item name="catalog_product" xsi:type="array">
<item name="product" xsi:type="string">ProductInterface</item>
<item name="simple" xsi:type="string">SimpleProduct</item>
<item name="virtual" xsi:type="string">VirtualProduct</item>
</item>
<item name="customizable_options" xsi:type="array">
<item name="field" xsi:type="string">CustomizableFieldOption</item>
<item name="date" xsi:type="string">CustomizableDateOption</item>
<item name="date_time" xsi:type="string">CustomizableDateOption</item>
<item name="time" xsi:type="string">CustomizableDateOption</item>
<item name="file" xsi:type="string">CustomizableFileOption</item>
<item name="area" xsi:type="string">CustomizableAreaOption</item>
<item name="drop_down" xsi:type="string">CustomizableDropDownOption</item>
<item name="multiple" xsi:type="string">CustomizableMultipleOption</item>
<item name="radio" xsi:type="string">CustomizableRadioOption</item>
<item name="checkbox" xsi:type="string">CustomizableCheckboxOption</item>
</item>
</argument>
</arguments>
</type>
<type name="Magento\CatalogGraphQl\Model\Layer\Context">
<arguments>
<argument name="collectionProvider" xsi:type="object">Magento\CatalogGraphQl\Model\Layer\CollectionProvider</argument>
<argument name="stateKey" xsi:type="object">Magento\Catalog\Model\Layer\Category\StateKey</argument>
<argument name="collectionFilter" xsi:type="object">Magento\Catalog\Model\Layer\Category\CollectionFilter</argument>
</arguments>
</type>
<type name="Magento\Catalog\Model\Layer\Search">
<arguments>
<argument name="context" xsi:type="object">Magento\CatalogGraphQl\Model\Layer\Context</argument>
</arguments>
</type>
<type name="Magento\CatalogGraphQl\Model\Layer\CollectionProvider">
<arguments>
<argument name="collectionProcessor" xsi:type="object">Magento\Catalog\Model\Api\SearchCriteria\ProductCollectionProcessor</argument>
</arguments>
</type>
<virtualType name="Magento\Catalog\Model\Api\SearchCriteria\CollectionProcessor\ProductFilterProcessor" type="Magento\Eav\Model\Api\SearchCriteria\CollectionProcessor\FilterProcessor">
<arguments>
<argument name="customFilters" xsi:type="array">
<item name="price" xsi:type="object">Magento\Catalog\Model\Api\SearchCriteria\CollectionProcessor\FilterProcessor\ProductPriceFilter</item>
<item name="min_price" xsi:type="object">Magento\Catalog\Model\Api\SearchCriteria\CollectionProcessor\FilterProcessor\ProductPriceFilter</item>
<item name="max_price" xsi:type="object">Magento\Catalog\Model\Api\SearchCriteria\CollectionProcessor\FilterProcessor\ProductPriceFilter</item>
<item name="category_id" xsi:type="object">Magento\CatalogGraphQl\Model\Resolver\Products\SearchCriteria\CollectionProcessor\FilterProcessor\CategoryFilter</item>
</argument>
</arguments>
</virtualType>
<preference for="Magento\Framework\Search\Adapter\Mysql\Query\Builder\Match"
type="Magento\CatalogGraphQl\Model\Search\Adapter\Mysql\Query\Builder\Match" />
<type name="Magento\StoreGraphQl\Model\Resolver\Store\StoreConfigDataProvider">
<arguments>
<argument name="extendedConfigData" xsi:type="array">
<item name="product_url_suffix" xsi:type="string">catalog/seo/product_url_suffix</item>
<item name="category_url_suffix" xsi:type="string">catalog/seo/category_url_suffix</item>
<item name="title_separator" xsi:type="string">catalog/seo/title_separator</item>
<item name="list_mode" xsi:type="string">catalog/frontend/list_mode</item>
<item name="grid_per_page_values" xsi:type="string">catalog/frontend/grid_per_page_values</item>
<item name="list_per_page_values" xsi:type="string">catalog/frontend/list_per_page_values</item>
<item name="grid_per_page" xsi:type="string">catalog/frontend/grid_per_page</item>
<item name="list_per_page" xsi:type="string">catalog/frontend/list_per_page</item>
<item name="catalog_default_sort_by" xsi:type="string">catalog/frontend/default_sort_by</item>
</argument>
</arguments>
</type>
</config>