Here https://docs.zendframework.com/zend-mvc/cookbook/middleware-in-listeners/ are docs about how to use middleware PSR-7 within event listeners. There is example of middleware with __invoke() method of middleware.
How to call middleware PSR-15 with process() method of middleware class within event listeners?
Here https://docs.zendframework.com/zend-mvc/middleware/#writing-middleware is example of how to write middleware with process() method of middleware class, but there is nothing about how to call it in event listener. Besides, __https://github.com/http-interop/http-middleware from docs is now deprecated. Can somebody give me some modern example of using middleware PSR-15 with process() method of middleware class within event listeners?
zend-httphandlerrunner - Is this what I need for PSR-15 middleware within event listener? How to use that?
zend-stratigility __https://docs.zendframework.com/zend-stratigility/v3/middleware/#psr-15-middleware support PSR-15 middleware but how to use it within event listeners in zend framework 3 (zend-mvc)?