Can those more familiar with Orchard CMS help me with a problem? I am writing an Orchard module and my controllers have constructor arguments (service interfaces).
Where in Orchard do I set up a custom controller factory to handle this (without interfering with other Orchard modules that a user has installed)
Is it something done in Global.asax? I have found
ControllerBuilder.Current.SetControllerFactory(new OrchardControllerFactory());
in OrchardStarter.cs so I'm confused as to where any other controller factories would be set.
Is it just done using Autofac DI? If so, if anyone has a short code sample that would be great! (I'm new to Autofac and Orchard)
Thanks