modelsfolder 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:
boxwhich is simply an alias for
commandbox. All of the examples above such as
boxinjection namespace was added to CommandBox in version
4.7.0and added to ColdBox MVC in version
5.4.0so using it will preclude the use of your module on older versions of either platform.
reloadcommand (aliased as
r) to reprocess metadata on your CFCs.