I have an issue with WireBox when using it inside of the ColdBox framework, that I am hoping someone can give more answers too.
With Autowire it is simple and easy to use, but I believe this will be phased out for favour of WieBox. But I have a serious problem with this and ColdBox that I have brought to the table on many occasions that still hasn’t been solved, or any real definitive answer.
With Autowire, it automatically knows the directories to look into for DI. WireBox inside ColdBox does not.
For example and I might be wrong, but my tests show otherwise.
If I use the default settings for WireBox, non of the handlers, models, modules, plugins etc are automatically added to WireBox, meaning that if you try to use
property name="someService: inject=“model:someService”:
And then try to use this it will throw an undefined error, this is because the model Directory is not automatically being added to WireBox from ColdBox conventions, which means that if one is to change the convention, you have to manually change WireBox to reflect this change.
So unless I am not doing this right, my question was before ColdBox 3.0 was release is still valid today.
Why doesn’t ColdBox automatically add the convention paths to WireBox for us?