I have an issue where I am using the following code to register an interceptor.
controller.getInterceptorService().registerInterceptor(interceptorClass=interceptorClass, interceptorName=interceptorName);
Now the interceptor is actually firing and working, and I have the following that should be injected.
property name=“ORMService” inject=‘ColdBox:plugin:ORMService’;
property name=“logger” inject=‘logbox’;
In the preProcess method I am trying to read some information from the ORMService, but it appears that the ORMService is not being injected. Can anyone see what I might be doing wrong?
The call is very straight forward
ORMService.new(‘entityName’);
This works in the module handlers, but will not work in the preProcess here…
Regards,
Andrew Scott