Files
svc-api-x/v1/taffy/examples/api_DI1/Application.cfc
2024-10-23 11:17:42 +03:00

17 lines
393 B
Plaintext

<cfcomponent extends="taffy.core.api">
<cfscript>
this.name = hash(getCurrentTemplatePath());
variables.framework = {};
function onApplicationStart(){
application.beanFactory = createObject("component", "di1.ioc").init( "/taffy/examples/api_DI1/model" );
variables.framework.beanFactory = application.beanFactory;
return super.onApplicationStart();
}
</cfscript>
</cfcomponent>