K13: How to Dependency Injection in Custom Module

Rory Aherne asked on April 12, 2023 11:23

Hi,

how can I use DI when registering a custom module?

I've tried adding a second constructor with the required params but it never gets called. Or is DI not possible when registering custom modules?

Thanks

Correct Answer

Rory Aherne answered on April 17, 2023 09:47

Answer is contained in this article:

https://devnet.kentico.com/articles/building-an-integration-(stripe)-part-3-helpers-and-event-handlers

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.