So, I am now using M6 for one of my apps. and the autowiring has
stopped working.
I have this in my Coldbox.cfc
//Model Integration
models = {
objectCaching = false,
setterInjection = false,
definitionFile = "config/ModelMappings.cfm"
};
interceptors = [
//SES
{class="coldbox.system.interceptors.SES",
properties={}
},
//Autowire
{class="coldbox.system.interceptors.Autowire",
properties={enableSetterInjection=false,debugMode=true}
}
];
and my ModelMappings.cfm has all the Models defined like this
addModelMapping(path="UserService"); etc
My handler looks like this
<cfcomponent name="main" extends="coldbox.system.eventhandler"
autowire="true">
<cfproperty name="UserService" type="model" scope="instance" />
....
</cfcomponent>
but I dont see anything in the logs (no errors in autowiring) and the
autowiring doesnt happen at all....
What am I missing?
This was working perfectly fine in previous version I was using (I
think M3 or M2) ?
What am I missing ?