I am attempting to map a service in my wirebox configuration… passing in a reference to my DAO in the arguments.
Can you explain some interesting things that are happening
Here is my config
In my handler I have tried using a property
property name=“objPillarService” inject=“PillarService”;
But with no luck I have reverted to getting the service directly out of the wirebox application instance.
variables.objPillarService = application.wirebox.getInstance(‘PillarService’);
Now in this last example i am geting an error saying
Error Messages: Error building: crown.modules.mymodule.handlers.MyHandler-> Error building: PillarService -> The PILLARDAO parameter to the init function is required but was not
I was then thinking that perhaps since I have made some changes I needed to reinit my app… so I added in fwReinit and init_app
But still the same error.
Now here comes the strange part
I completely removed the mappings of both the DAO and the Service from my wirebox config… And I still get the error!
How can it be even finding my PillarService if there is no mapping setup?
Perhaps my wirebox is not reinitialising for some reason?
Also… I have had some strange things going on with my cfbuilder… It creates sub directories in my model folders for CVS
And in some instance coldbox has been finding these files instead of the the components in my actual model folder… almost as if it is scanning sub directories first!
Thanks for any pointers in advance