DNN Blogs

Written for the Community, by the Community
All Posts Author: Stefan Kamphuis (40F)

Using the DNN Dependency Injection Services in existing modules

Using the DNN Dependency Injection Services in existing modules

Over the past years, DNN has been deprecating a lot of API methods to services using Dependency Injection. Starting DNN 10, the first batch of "old" API's have actually been removed. This means a lot of the old modules that are still out there, will need to be updated to use those new DI-services. The good thing is that de DNN Docs explain how you can do that. But, unfortunately, back iin the day, static method were considered pretty fancy. No need to instanciate a class if you don't nmeed it's state, right? Well, that's biting us now. But, there's no way back, so we need to have a quick and solid way to use the new services, using DI.

The DNN-Connect Brown Paper Session

DNN-Connect 2023 has only been over for a little 2 weeks, but already it feels like a long time. As always, when you get home, normal life kicks in again and it could be easy to forget about the great things we did and learned during the conference.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved