forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdi.xml
More file actions
47 lines (47 loc) · 2.41 KB
/
di.xml
File metadata and controls
47 lines (47 loc) · 2.41 KB
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
<?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\Customer\Model\Customer" type="Magento\Customer\Model\Backend\Customer"/>
<type name="Magento\Customer\Model\ResourceModel\Customer\Collection">
<arguments>
<argument name="modelName" xsi:type="string">Magento\Customer\Model\Backend\Customer</argument>
</arguments>
</type>
<preference for="Magento\Framework\Session\SessionManagerInterface" type="Magento\Backend\Model\Session"/>
<type name="Magento\Ui\Model\Export\MetadataProvider">
<arguments>
<argument name="data" xsi:type="array">
<item name="customer_listing" xsi:type="array">
<item name="created_at" xsi:type="string">created_at</item>
<item name="last_visit_at" xsi:type="string">last_visit_at</item>
</item>
</argument>
</arguments>
</type>
<virtualType name="CustomerGirdFilterPool" type="Magento\Framework\View\Element\UiComponent\DataProvider\FilterPool">
<arguments>
<argument name="appliers" xsi:type="array">
<item name="regular" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\RegularFilter</item>
<item name="fulltext" xsi:type="object">Magento\Customer\Ui\Component\Listing\FulltextFilter</item>
</argument>
</arguments>
</virtualType>
<virtualType name="CustomerGridCollectionReporting" type="Magento\Framework\View\Element\UiComponent\DataProvider\Reporting">
<arguments>
<argument name="filterPool" xsi:type="object">CustomerGirdFilterPool</argument>
</arguments>
</virtualType>
<type name="Magento\Customer\Ui\Component\DataProvider">
<arguments>
<argument name="reporting" xsi:type="object">CustomerGridCollectionReporting</argument>
</arguments>
</type>
<type name="Magento\Customer\Model\Customer\DataProviderWithDefaultAddresses">
<plugin name="addRequestParamToDataProviderRendererUrl" type="Magento\Customer\Model\Plugin\Customer\DataProviderWithDefaultAddresses\AddRequestParamToDataProviderRendererUrl"/>
</type>
</config>