I have one custom module which is working fine for M 2.1.7
in that module, I extend \Magento\Bundle\Model\Product\Type
in M 2.2.4 they added a new class for core file and passed to __construct
that is Magento\Bundle\Model\ResourceModel\Selection\Collection\FilterApplier
is a new file or class in M.2.2.4 and used in \Magento\Bundle\Model\Product\Type::__construct
but in M 2.1.7 above class is not used and also not exists
what is the best approach so that my extended class should support both the version that is (M 2.1.7 and aM 2.2.4)?
Note:- I cannot use Plugin because I need to modify the logic in _prepareProduct()
which is protected