Hi Guys, I am trying to integrate some interceptor code and sure of
the syntax with cfscript.
I want to integrate the config code into the security interceptor
code.
//Register interceptors as an array, we need order
interceptors = [
//Autowire
{class="coldbox.system.interceptors.Autowire",
properties={}
},
//SES
{class="coldbox.system.interceptors.SES",
properties={configFile="config/routes.cfm"}
}
];
//Register interceptors as an array, we need order
interceptors = [
//Autowire
{class="coldbox.system.interceptors.Autowire"},
//SES
{class="coldbox.system.interceptors.SES"},
//SES
{
class="coldbox.system.interceptors.Security",
properties={
useRoutes = true,
rulesSource = "xml",
rulesFile = "/config/securityRules.xml.cfm"
}
}
];
I am thinking I should have something like this. But ColdFusion
Builder says that syntax is wrong. What is the correct syntax to write
the code so I can declare the location of my config file and security
rules file? I know that by convention I do not need to declare the
location of the config. But I would like to because it will help me at
a later date if I turn this over to someone else.
//Register interceptors as an array, we need
order
interceptors = [
//Autowire
{class="coldbox.system.interceptors.Autowire"},
//SES
{class="coldbox.system.interceptors.SES"},
properties={configFile="config/routes.cfm"}
{
class="coldbox.system.interceptors.Security",
properties={
useRoutes = true,
rulesSource = "xml",
rulesFile = "/config/
securityRules.xml.cfm"
}
}
];