models
folder of any module will automatically be mapped in WireBox with the pattern [email protected]
. Therefore, if you create a module called "SuperDuper" that has a CFC called models/AmazingService.cfc
, you could inject it in your module's custom command like so:box
which is simply an alias for commandbox
. All of the examples above such asbox
injection namespace was added to CommandBox in version 4.7.0
and added to ColdBox MVC in version 5.4.0
so using it will preclude the use of your module on older versions of either platform.reload
command (aliased as r
) to reprocess metadata on your CFCs.