is there a possibility to get the modules name/entryPoint at handler initialization?
Or are there any plans to make ModuleSettings available via autowire DSL:
something like ... coldbox:modSetting:{entryPoint}:{setting}?
getCurrentModule() is not part of the framework supertype so I am not
sure if there is a better way to get at the current module name. It's
probably in the docs somewhere
The first hint works well:
variables.entryPoint = controller.getSetting("modules")[controller.getRequestService().getContext().getCurrentModule()].entryPoint;
Second gives me an error
variables['entryPoint'] = controller.getModuleSettings(controller.getRequestService().getContext().getCurrentModule()).entryPoint;
Error
component [coldbox.system.web.Controller] has no function with name [GETMODULESETTINGS].
My goal is to use entryPoint as unique identifier regarding further model-related code.
For this, i do associate the modules folder name to entryPoint in ModuleConfig.cfc: