Can we use System::importStatic($strClass) here to initialize the product (line 167), so that we can create instances of an Isotope product from services registered in the container?
these are model classes, I don't think we can use services for these? Do you mean the call to the static method of our model/repository should be to a service?
Can we use
System::importStatic($strClass)
here to initialize the product (line 167), so that we can create instances of an Isotope product from services registered in the container?https://github.com/isotope/core/blob/7f81e8b9ae9fe75a3bbe69f8c475cdb5cc348a6f/system/modules/isotope/library/Isotope/Model/ProductCollectionItem.php#L158-L167
The background of my question is that my product class has to be initialized differently.