I have one custom module which is working fine for M 2.1.7
in that module, I extend
in M 2.2.4 they added a new class for core file and passed to
is a new file or class in M.2.2.4 and used in
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