Skip to content

Commit

Permalink
CollectionFactory handlers must be defined globally
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Dec 6, 2023
1 parent 3fe93c0 commit 621f6d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
22 changes: 0 additions & 22 deletions etc/adminhtml/di.xml

This file was deleted.

13 changes: 13 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,17 @@
</argument>
</arguments>
</type>
<virtualType name="Opengento\WebapiLogger\Model\ResourceModel\Logs\Grid\Collection\Virtual" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<arguments>
<argument name="mainTable" xsi:type="string">webapi_logs</argument>
<argument name="resourceModel" xsi:type="string">Opengento\WebapiLogger\Model\ResourceModel\LogResourceModel</argument>
</arguments>
</virtualType>
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="opengento_webapi_logs_entity_data_source" xsi:type="string">Opengento\WebapiLogger\Model\ResourceModel\Logs\Grid\Collection\Virtual</item>
</argument>
</arguments>
</type>
</config>

0 comments on commit 621f6d2

Please sign in to comment.