Is there any in-built dependency injection module ?

15 views
Skip to first unread message

debabrata...@gmail.com

unread,
Jan 24, 2019, 10:30:19 PM1/24/19
to KalikoCMS Developer Forum
I can't use unity dependency injection module as the controller is expecting an empty constructor always. So does this CMS provides any inbuilt di module or any configuration to handle it?


[NullReferenceException: Object reference not set to an instance of an object.]
KalikoCMS.Mvc.RequestModule.RedirectToController(CmsPage page, String actionName, Dictionary`2 additionalRouteData, Boolean isPreview) +355
KalikoCMS.Mvc.RequestModule.RedirectToStartPage() +314
KalikoCMS.Modules.RequestModuleBase.HandleRequest() +66
KalikoCMS.Modules.RequestModuleBase.PostAuthorizeRequest(Object sender, EventArgs e) +5
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71

Fredrik Schultz

unread,
Jan 25, 2019, 2:10:36 AM1/25/19
to KalikoCMS Developer Forum
There's a major rewrite in progress to make the CMS .NET Core compatible which also improves the infrastructure by for instance adding support for dependency injection. But there's much work left before it will take the role as the main release, so I'll look into moving that support over to the current MVC provider as well when I'm looking into the session problem.

The aim is to be agnostic when it comes to integration and leave the choice of dependency injection package to the developer.
Reply all
Reply to author
Forward
0 new messages