Skip to content

Commit

Permalink
add modifier pool to di
Browse files Browse the repository at this point in the history
  • Loading branch information
karliuka committed Jan 25, 2023
1 parent 21267a1 commit e0a92ae
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion etc/adminhtml/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
<argument name="aclResource" xsi:type="string">Faonni_SalesSequence::profile</argument>
</arguments>
</virtualType>
<!-- data provider configurations -->
<!-- listing data provider configurations -->
<virtualType name="FaonniSalesSequenceProfileListingModifierPool" type="Magento\Ui\DataProvider\Modifier\Pool"/>
<type name="Faonni\SalesSequence\Ui\DataProvider\Profile\ListingDataProvider">
<arguments>
<argument name="modifierPool" xsi:type="object">FaonniSalesSequenceProfileListingModifierPool</argument>
</arguments>
</type>
<type name="Magento\Framework\EntityManager\MapperPool">
<arguments>
<argument name="mappers" xsi:type="array">
Expand All @@ -31,4 +37,11 @@
</argument>
</arguments>
</virtualType>
<!-- form data provider configurations -->
<virtualType name="FaonniSalesSequenceProfileFormModifierPool" type="Magento\Ui\DataProvider\Modifier\Pool"/>
<type name="Faonni\SalesSequence\Ui\DataProvider\Profile\FormDataProvider">
<arguments>
<argument name="modifierPool" xsi:type="object">FaonniSalesSequenceProfileFormModifierPool</argument>
</arguments>
</type>
</config>

0 comments on commit e0a92ae

Please sign in to comment.