di.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <type name="Magento\CatalogRule\Model\Rule">
  10. <arguments>
  11. <argument name="relatedCacheTypes" xsi:type="array">
  12. <item name="blockCache" xsi:type="string">block_html</item>
  13. <item name="fullPageCache" xsi:type="string">full_page</item>
  14. </argument>
  15. </arguments>
  16. </type>
  17. <type name="Magento\Catalog\Model\ResourceModel\Product">
  18. <plugin name="apply_catalog_rules_after_product_save" type="Magento\CatalogRule\Plugin\Indexer\Product\Save\ApplyRules"/>
  19. </type>
  20. <type name="Magento\Catalog\Model\Category">
  21. <plugin name="apply_after_products_assign" type="Magento\CatalogRule\Plugin\Indexer\Category"/>
  22. </type>
  23. <type name="Magento\Store\Model\Website">
  24. <plugin name="reindex_after_delete_website" type="Magento\CatalogRule\Plugin\Indexer\Website"/>
  25. </type>
  26. <type name="Magento\Customer\Model\Group">
  27. <plugin name="reindex_after_delete_customer_group" type="Magento\CatalogRule\Plugin\Indexer\CustomerGroup"/>
  28. </type>
  29. <type name="Magento\ImportExport\Model\Import">
  30. <plugin name="reindex_after_import" type="Magento\CatalogRule\Plugin\Indexer\ImportExport"/>
  31. </type>
  32. <type name="Magento\Catalog\Model\ResourceModel\Eav\Attribute">
  33. <plugin name="change_product_attribute" type="Magento\CatalogRule\Plugin\Indexer\Product\Attribute"/>
  34. </type>
  35. <type name="Magento\Catalog\Model\Product\Action">
  36. <plugin name="price_plugin" type="Magento\CatalogRule\Plugin\Model\Product\Action"/>
  37. </type>
  38. </config>