Module Service

Last updated 8 months ago

The beauty of ColdBox Modules is that you have an internal module service that you can tap in order to dynamically interact with the ColdBox Modules. This service is available by talking to the main ColdBox controller and calling its getModuleService() method or via dependency injection.

// get module service from handlers, plugins, layouts, interceptors or views.
ms = controller.getModuleService();
‚Äč
// You can also inject it via our autowire DSL
property name="moduleService" inject="coldbox:moduleService";