Hey good morning. I'm trying use a wirebox provide...
# box-products
d
Hey good morning. I'm trying use a wirebox provider. I would like to know what arguments some
getInstance
passed to init arguments, I think they may not be available though, maybe I am misunderstanding or this is by design.
Copy code
// coldbox/system/ioc/Injector.cfc
case "provider": {
    // verify if it is a simple value or closure/UDF
    if ( isSimpleValue( arguments.mapping.getPath() ) ) {
        oModel = getInstance( arguments.mapping.getPath() ).$get();
    } else {
        var closure = arguments.mapping.getPath();       
        oModel      = closure( injector = this ); // initArguments not passed here?
    }
    break;
}
seems I really want an "influence closure"