Skip to content

Commit 3fbc268

Browse files
committed
fix(BaseGrammar): Missed another interceptorService update
1 parent e7c2893 commit 3fbc268

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

models/Grammars/BaseGrammar.cfc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)