Yes I was to retrieve the structure when I change the cfproperty to: inject=“coldbox:setting:google”
Makes sense. Out of curiosity though, is there a way to inject a setting that exists in a structure or is it best practice to inject the full structure/setting and then reference the key that is needed?
No, I don’t believe you can parse the structure on injection without implementing some custom behavior via WireBox–which, I still have not played with… But, from what I read, it seems like you could solve your issue with WireBox–I just don’t know how yet.
I believe all failed injections are treated as a empty string. If ColdBox can parse the stuct and insert just the value of a nested key, that would be fantastic; however, I don’t believe this is really a bug.
Plus you have to use evaluations for this and not find that good usage. I suggest wiring the parent setting and then grabbing what you need or get funky and build your own setting custom dsl that can do this for you in wirebox