Last active
August 29, 2015 14:07
-
-
Save DominicWatson/715253b4d0c4defe2fec to your computer and use it in GitHub Desktop.
Wirebox.cfc with explicit wiring configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component extends="coldbox.system.ioc.config.Binder" output=false { | |
public void function configure() output=false { | |
map( "myService" ) | |
.to( "services.MyService" ) | |
.asSingleton() | |
.noAutowire() | |
.initArg( name="someSetting", value=settings.mySetting ) | |
.initArg( name="somecache", dsl="cachebox:myCache" ); | |
map( "myOtherService" ) | |
.to( "services.MyOtherService" ) | |
.asSingleton() | |
.noAutowire() | |
.initArg( name="myService", ref="myService" ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think this is the section of the docs that starts looking at explicit configuration:
http://wiki.coldbox.org/wiki/WireBox.cfm#Mapping_DSL