I 'm new to Taffy and did some example projects. So far so good, everything worked fine. Then I wanted to integrate my DI/1 sample application to Taffy, but failed to initialise the bean factory with applicationStartEvent (like mentioned in the docs). I fiddled a bit with some debug to file and it seems that the applicationStartEvent function is never called by the framework.
<cfcomponent
extends="taffy.core.api"
output="false">
<cfset this.mappings["/di1"] = expandPath("./di1") />
<cfset this.mappings["/resources"] = expandPath("./resources") />
<cfset this.mappings["/taffy"] = expandPath("./taffy") />
<cfset this.mappings["/model"] = expandPath("./model/") />
<cfset variables.framework = {
reloadKey = "reload"
,reloadPassword = "true"
,reloadOnEveryRequest = false
,defaultRepresentationClass = "taffy.core.nativeJsonRepresentation"
,dashboardKey = "dashboard"
,disableDashboard = false
,unhandledPaths = "/flex2gateway"
,allowCrossDomain = false
,globalHeaders = structNew()
,debugKey = "debug"
,returnExceptionsAsJson = true
,exceptionLogAdapter = "taffy.bonus.LogToScreen"
,beanFactory = ""
} />
<cffunction name="applicationStartEvent">
<cfset application.beanFactory = createObject("component", "di1.ioc").init("/model", { singletonPattern = ".+(Service|Factory)$" }) />
<cfset variables.framework.beanFactory = application.beanFactory />
</cffunction>
</cfcomponent>