File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,12 +157,12 @@ component displayname="Grammar" accessors="true" singleton {
157157 * This method exists because the API for InterceptorService differs between ColdBox and CommandBox
158158 */
159159 private function tryPostInterceptor ( data ) {
160- if ( structKeyExists ( application , " applicationName" ) && application .applicationName == " CommandBox CLI" ) {
160+ param variables .useAnnounceMethodForInterceptorService = structKeyExists ( variables .interceptorService , " announce" );
161+ if ( variables .useAnnounceMethodForInterceptorService ) {
161162 variables .interceptorService .announce ( " postQBExecute" , data );
162- return ;
163+ } else {
164+ variables .interceptorService .processState ( " postQBExecute" , data );
163165 }
164-
165- variables .interceptorService .processState ( " postQBExecute" , data );
166166 return ;
167167 }
168168
You can’t perform that action at this time.
0 commit comments