The other way to handle this if you want to stick with mixin injection, is to move the logic out of init() and into a onDIComplete() method. This is the order that CFCs are dealt with when they are built with WireBox
- yourCFC.init() ← constructor args passed here if any exist
- autowire(youCFC) ← This is where mixin injection happens
- yourCFC.onDIComplete() ← Now you have access to everything.
ColdBox Platform Evangelist
Ortus Solutions, Corp