-
Notifications
You must be signed in to change notification settings - Fork 0
/
Application.cfc
35 lines (30 loc) · 1.38 KB
/
Application.cfc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
component extends="vendor.fw1.framework.one" {
THIS.name = "tttdemo" & hash(getCurrentTemplatePath());
THIS.sessionManagement = "true";
THIS.sessionTimeout = CreateTimeSpan( 0, 8, 0, 0 );
this.mappings['/framework'] = getDirectoryFromPath(getCurrentTemplatePath()) & "/vendor/fw1/framework/";
VARIABLES.framework = structNew();
VARIABLES.framework.action = "do";
VARIABLES.framework.usingSubsystems = false;
VARIABLES.framework.defaultSection = "home";
VARIABLES.framework.defaultItem = "welcome";
VARIABLES.framework.reloadApplicationOnEveryRequest = false;
VARIABLES.diLocations = "/model,/controllers";
function setupApplication(){
APPLICATION.demoURL = "http://demo.ttt";
APPLICATION.serviceURL = "http://api.ttt";
APPLICATION.proxyServer = "";
APPLICATION.proxyPort = "0";
}
function setupRequest(){
REQUEST.context.subscriberAccessKey = "00001-almagro";
REQUEST.context.subscriberSecret = "F9A08BA54DA9672B91B399487C07BF411F65C8D6F1C54";
REQUEST.context.serviceURL = APPLICATION.serviceURL & "/v1/s-" & REQUEST.context.subscriberAccessKey;
REQUEST.context.user = THIS.getBeanFactory().getBean("User");
if(IsDefined("SESSION.user")){
REQUEST.context.user = SESSION.user;
}
REQUEST.context.metrics = {};
REQUEST.context.metrics.api = 0;
}
}