Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Pipe should not decorate MiddlewarePipe instances #98

Conversation

weierophinney
Copy link
Member

In prepping Expressive to use Stratigility 2, I discovered that MiddlewarePipe instances piped into another MiddlewarePipe instance were being decorated as callable middleware; this should no longer happen.

This patch adds a test to ensure it does not happen, and updates pipe() to not decorate callable ServerMiddlewareInterface instances.

In doing so, the isInteropMiddleware() method is no longer relevant, and I removed it; since it was marked private, this is a backwards compatible change.

In prepping Expressive to use Stratigility 2, I discovered that
`MiddlewarePipe` instances piped into another `MiddlewarePipe` instance
were being decorated as callable middleware; this should no longer
happen.

This patch adds a test to ensure it does not happen, and updates
`pipe()` to not decorate callable `ServerMiddlewareInterface` instances.

In doing so, the `isInteropMiddleware()` method is no longer relevant,
and I removed it; since it was marked `private`, this is a backwards
compatible change.
@weierophinney weierophinney added this to the 2.0.1 milestone Jan 25, 2017
@weierophinney weierophinney merged commit 0d8fe1d into zendframework:master Jan 25, 2017
weierophinney added a commit that referenced this pull request Jan 25, 2017
weierophinney added a commit that referenced this pull request Jan 25, 2017
weierophinney added a commit that referenced this pull request Jan 25, 2017
@weierophinney weierophinney deleted the hotfix/interop-middleware-detection branch January 25, 2017 19:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant