zend-stratigility 1.3 just dropped and includes code to dispatch middleware that conforms to the http-interop (soon to be PSR-15 I guess) ServerMiddlewareInterface standard. The problem is that Zend\Expressive\MarshalMiddlewareTrait::marshalLazyMiddlewareService() wraps middleware in a Closure, which therefore bypasses the stratigility Dispatch code.
Yes, that code has been deprecated and will be removed in zend-stratigility 2.0, but this should still be resolved as many will stick with 1.3 and gradually migrate to the http-interop middleware style over time. zend-stratigility 2.0 will require http-interop style middleware.
zend-stratigility 1.3 just dropped and includes code to dispatch middleware that conforms to the http-interop (soon to be PSR-15 I guess)
ServerMiddlewareInterface
standard. The problem is thatZend\Expressive\MarshalMiddlewareTrait::marshalLazyMiddlewareService()
wraps middleware in aClosure
, which therefore bypasses the stratigilityDispatch
code.Yes, that code has been deprecated and will be removed in zend-stratigility 2.0, but this should still be resolved as many will stick with 1.3 and gradually migrate to the http-interop middleware style over time. zend-stratigility 2.0 will require http-interop style middleware.