Hi,
I configured Wirebox in my Coldbox.cfc like this:
//WireBox Integration
wireBox = {
enabled = true,
singletonReload=true,
binder = ‘/config.WireBox’
};
/config is an application mapping that points to a location outside the webroot.
I have this in ColdBox.cfc
//Implicit Events
defaultEvent = “invoice.list”,
requestStartHandler = “Main.onRequestStart”,
In my Wirebox config I have this line:
// Map Bindings below
map(“SessionService”).to(“Application.model.Services.SessionService”);
(as Luis explained in http://wiki.coldbox.org/wiki/WireBox.cfm this is all I need to define a mapping)
Finally in event handler Main I have this to get an instance of the SessionService injected:
Now I want to test if I do have an instance of SessionService like this:
This gives me
Application Execution ExceptionError Type: Expression : [N/A]
Error Messages: Element SESSIONSTORAGE is undefined in VARIABLES.
But it is there allright because if I request it via Wirebox like this:
I do get a dump off the cfc I requested.
So is autowiring via the DSL not working inm the Coldbox 3.5 Beta or am I missing something?
Btw I use Coldfusion 9.0.1
Marc