File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ component displayname="Grammar" accessors="true" singleton {
6969 // These are overwritten by WireBox, if it exists.
7070 variables .interceptorService = {
7171 " processState" : function () {
72+ },
73+ " announce" : function () {
7274 }
7375 };
7476 variables .log = {
@@ -142,7 +144,12 @@ component displayname="Grammar" accessors="true" singleton {
142144 * This method exists because the API for InterceptorService differs between ColdBox and CommandBox
143145 */
144146 private function tryPreInterceptor ( data ) {
145- variables .interceptorService .processState ( " preQBExecute" , data );
147+ param variables .useAnnounceMethodForInterceptorService = variables .interceptorService .keyExists ( " announce" );
148+ if ( variables .useAnnounceMethodForInterceptorService ) {
149+ variables .interceptorService .announce ( " preQBExecute" , data );
150+ } else {
151+ variables .interceptorService .processState ( " preQBExecute" , data );
152+ }
146153 return ;
147154 }
148155
You can’t perform that action at this time.
0 commit comments