I have a quick question. Is there any kind of dependencies which shouldn't be injected by DI? Yesterday I saw in my teammate pull request injection of class which have only static methods (typical bag of functional methods). And I've started wondering if it should be injected or not. That class doesn't interfere with any external services. I can't find any clear answer.
Any suggestions?
Aucun commentaire:
Enregistrer un commentaire