You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Do not cast request handlers implementing middleware to RequestHandlerMiddleware
Per #645, `MiddlewareContainer::get()` was incorrectly casting
middleware that also implemented `RequestHandlerInterface` to
`RequestHandlerMiddleware`. This particularly affected
`Zend\Stratigility\MiddlewarePipe` instances, as they implement both
interfaces; if the last middleware in a pipeline called on the handler,
users would then encounter a "pipeline exhausted" error, because it
would be invoked as a handler, and thus have no reference to the
application's pipeline.
This change verifies that the request handler does not also implement
`MiddlewareInterface` before casting.
0 commit comments