di.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Mageplaza_Core extension
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Mageplaza License
  8. * that is bundled with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * https://www.mageplaza.com/LICENSE.txt
  11. *
  12. * @category Mageplaza
  13. * @package Mageplaza_Core
  14. * @copyright Copyright (c) 2016
  15. * @license https://www.mageplaza.com/LICENSE.txt Mageplaza License
  16. */
  17. -->
  18. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
  19. <virtualType name="MageplazaCoreGirdFilterPool" type="Magento\Framework\View\Element\UiComponent\DataProvider\FilterPool">
  20. <arguments>
  21. <argument name="appliers" xsi:type="array">
  22. <item name="regular" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\RegularFilter</item>
  23. <item name="fulltext" xsi:type="object">Magento\Framework\View\Element\UiComponent\DataProvider\FulltextFilter</item>
  24. </argument>
  25. </arguments>
  26. </virtualType>
  27. <virtualType name="MageplazaCoreCoreGridDataProvider" type="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider">
  28. <arguments>
  29. <argument name="collection" xsi:type="object" shared="false">Mageplaza\Core\Model\ResourceModel\Core\Collection</argument>
  30. <argument name="filterPool" xsi:type="object" shared="false">MageplazaCoreGirdFilterPool</argument>
  31. </arguments>
  32. </virtualType>
  33. <type name="Mageplaza\Core\Model\ResourceModel\Core\Grid\Collection">
  34. <arguments>
  35. <argument name="mainTable" xsi:type="string">mageplaza_core_core</argument>
  36. <argument name="eventPrefix" xsi:type="string">mageplaza_core_core_grid_collection</argument>
  37. <argument name="eventObject" xsi:type="string">core_grid_collection</argument>
  38. <argument name="resourceModel" xsi:type="string">Mageplaza\Core\Model\ResourceModel\Core</argument>
  39. </arguments>
  40. </type>
  41. <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
  42. <arguments>
  43. <argument name="collections" xsi:type="array">
  44. <item name="mageplaza_core_core_listing_data_source" xsi:type="string">Mageplaza\Core\Model\ResourceModel\Core\Grid\Collection</item>
  45. </argument>
  46. </arguments>
  47. </type>
  48. </config>