Skip to content

Magento2.4.4 override class not working on windows

  1. This is my di.xml:

    <preferencefor="MagentoCustomerSegmentControllerAdminhtmlIndexSave" type="MyModuleCustomerSegmentControllerAdminhtmlIndexSave"/>
    <preferencefor="MagentoCustomerSegmentModelSegmentConditionCombine" type="MyModuleCustomerSegmentModelSegmentConditionCombine" />
    
  2. When I execute bin/magento setup:di:compile,I didn’t find code in generated files.
    But first preference is executed.This is generated fidle in customerSegment:

enter image description here