Announcing interceptors couldn’t be easier inside of a controller
announceInterception(“onPlaceOrder”,{order=o});
but I am a little confused how to do this from a service class I created. The docs say…
Announcing Interceptions
There are two ways to announce interceptions:
- announceInterception(state, interceptData) inherited by plugins, handlers and interceptors.
- getController().getInterceptorService().processState(state,interceptData)’ via the controller.
I don’t have access to either of these methods in my service, so not quite sure what to do here.