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

49 строки
2.5 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. <preference for="Magento\Customer\Model\Customer" type="Magento\Customer\Model\Backend\Customer" />
  10. <type name="Magento\Customer\Model\ResourceModel\Customer\Collection">
  11. <arguments>
  12. <argument name="modelName" xsi:type="string">Magento\Customer\Model\Backend\Customer</argument>
  13. </arguments>
  14. </type>
  15. <preference for="Magento\Framework\Session\SessionManagerInterface" type="Magento\Backend\Model\Session" />
  16. <type name="Magento\Ui\Model\Export\MetadataProvider">
  17. <arguments>
  18. <argument name="data" xsi:type="array">
  19. <item name="customer_listing" xsi:type="array">
  20. <item name="created_at" xsi:type="string">created_at</item>
  21. <item name="last_visit_at" xsi:type="string">last_visit_at</item>
  22. </item>
  23. </argument>
  24. </arguments>
  25. </type>
  26. <virtualType name="CustomerGirdFilterPool" type="Magento\Framework\View\Element\UiComponent\DataProvider\FilterPool">
  27. <arguments>
  28. <argument name="appliers" xsi:type="array">
  29. <item name="regular" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\RegularFilter</item>
  30. <item name="fulltext" xsi:type="object">Magento\Customer\Ui\Component\Listing\FulltextFilter</item>
  31. </argument>
  32. </arguments>
  33. </virtualType>
  34. <virtualType name="CustomerGridCollectionReporting" type="Magento\Framework\View\Element\UiComponent\DataProvider\Reporting">
  35. <arguments>
  36. <argument name="filterPool" xsi:type="object">CustomerGirdFilterPool</argument>
  37. </arguments>
  38. </virtualType>
  39. <type name="Magento\Customer\Ui\Component\DataProvider">
  40. <arguments>
  41. <argument name="reporting" xsi:type="object">CustomerGridCollectionReporting</argument>
  42. </arguments>
  43. </type>
  44. <type name="Magento\Store\Model\Website">
  45. <plugin name="reindex_customer_grid_after_website_remove" type="Magento\Customer\Model\Plugin\CustomerGridIndexAfterWebsiteDelete" />
  46. <plugin name="deleteCustomerGroupExcludedWebsiteAfterWebsiteDelete" type="Magento\Customer\Model\Plugin\Website\DeleteCustomerGroupExcludedWebsite"/>
  47. </type>
  48. </config>