Skip to content

Instantly share code, notes, and snippets.

@robertz
Created August 17, 2014 00:17
Show Gist options
  • Save robertz/2ec64e9e8e80fe78c31d to your computer and use it in GitHub Desktop.
Save robertz/2ec64e9e8e80fe78c31d to your computer and use it in GitHub Desktop.
ColdboxInterceptor.cfc
component {
void function Configure() {}
boolean function afterAspectsLoad(required any event, required struct interceptData){
var Tracker = new whoson.WhosonTracker();
getColdboxOCM().set('WhosOn', Tracker, 0);
return false;
}
boolean function preProcess(required any event, required struct interceptData){
getColdboxOCM().get('WhosOn').trackHit(event);
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment