I have created a new file and wish to have the component/functions available in the application scope.
In wirebox, I have:
map(“TextTest”).to(“global.cfc.TextTest”).into(this.SCOPES.APPLICATION).asEagerInit(); (I currently have added .asSingleton()
and this seems to work. When I do a dumpVar of the application scope, I see a line that says wirebox. Under that, I see:
wirebox:texttest (note the colon between the two words)
and in that, I see "component global.cfc.TextTest. Under methods, I see the function that I want, CLEANTEXT.
yay!
However, all attempts at referencing this from the file has been unsuccessful. I’ve tried dumpVar and from the .cfm file.
Did I do this correctly in wirebox? If so, how do I reference it?
thank you.
daniel