It seems that CB6 is having trouble injecting mapped object defined in modules.
Say I have a module that has the following mapping in ModuleConfig.cfc:
binder.map(“testModuleService”).to("#moduleMapping#.models.TestModuleService").asSingleton();
In my app’s handler test.cfc, I have the following line to inject “testModuleService”
property name=“testModuleService” inject;
I get this error:
The target ‘app.handlers.test’ requested a missing dependency with a Name of ‘testModuleService’ and DSL of ‘model’
It works if I try to do this: application.wirebox.getInstance(“testModuleService”).
The exact same mapping and injection code works in v5.6.2.