RE: [coldbox:17059] Re: [3.5.3] AOP, DI, and FrameworkSupertype

Providers can only references mapping IDs right now. I submitted a pull request about 6 months ago that will allow you to reference a DSL with a provider, but it sat long enough that I need to get it up to date with the latest WireBox changes and re-submit it. In the mean time, the only way to “provide” a DSL is to declare a mapping in the binder config like so:

map(“myMappingID”).toDSL(“coldbox:setting:foobar”);

Then you can put this property in your CFC:

property name=“myProvidedSetting” inject=“provider:myMappingID”;

If I ever get around to re-submitting my pull request and it gets merged, you could skip the mapping and do this in your CFC:

property name=“myProvidedSetting” inject=“provider:coldbox:setting:foobar”;

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

AHH THANK YOU!