Skip to content

Commit

Permalink
Special case hello8 subsystem into parent examples app.
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Aug 23, 2011
1 parent a72f458 commit b0a17d2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions examples/Application.cfc
@@ -1,11 +1,20 @@
<cfcomponent extends="org.corfield.framework"><cfscript>
component extends="org.corfield.framework" {
// Either put the org folder in your webroot or create a mapping for it!

this.name = 'fw1-examples';
this.sessionManagement = true;
// FW/1 - configuration:
variables.framework = structNew();
variables.framework.usingSubsystems = true;
variables.framework.SESOmitIndex = true;
variables.framework = {
usingSubsystems = true,
SESOmitIndex = true
};

</cfscript></cfcomponent>
// pull in bean factory for hello8:
public void function setupSubsystem( string subsystem ) {
if ( subsystem == "hello8" ) {
var bf = new hello8.model.ioc( "./hello8" );
setSubsystemBeanFactory( subsystem, bf );
}
}

}

0 comments on commit b0a17d2

Please sign in to comment.