WireBox
ColdBox's dependency injection framework, right there when you need it.
CBWIRE includes WireBox for pulling any dependencies you may need to use in your components, such as service objects, settings, and more.
getInstance()
You can pull in dependencies to your component using getInstance().
Property Injection
You can also pull in dependencies using property injection.
onDIComplete
If you want to act immediately after WireBox has fully constructor your component with it's dependencies, you can hook into the onDIComplete() method.
Last updated