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

Allow PSR-7 messages to Dispatch #32

Merged
merged 1 commit into from
Oct 9, 2015

Conversation

weierophinney
Copy link
Member

Next allows any PSR-7 implementations. However, prior to this patch, Dispatch required the Stratigilty-specific decorators, which could result in issues if $next() was invoked with non-Stratigility instances:

return $next($request, new JsonResponse());

This patch adds a test to ensure that Dispatch will pass them through properly, and modifies the typehints to use the PSR-7 interfaces. The change is completely BC, as the Stratigility implementations are a superset of PSR-7, and no specfic functionality from them was used previously.

Fixes #28.

`Next` allows any PSR-7 implementations. However, prior to this patch,
`Dispatch` required the Stratigilty-specific decorators, which could
result in issues if `$next()` was invoked with non-Stratigility
instances:

```php
return $next($request, new JsonResponse());
```

This patch adds a test to ensure that `Dispatch` will pass them through
properly, and modifies the typehints to use the PSR-7 interfaces. The
change is completely BC, as the Stratigility implementations are a
superset of PSR-7, and no specfic functionality from them was used
previously.
@weierophinney weierophinney added this to the 1.1.2 milestone Oct 9, 2015
@weierophinney weierophinney self-assigned this Oct 9, 2015
@weierophinney weierophinney merged commit 3b6b8aa into zendframework:master Oct 9, 2015
weierophinney added a commit that referenced this pull request Oct 9, 2015
weierophinney added a commit that referenced this pull request Oct 9, 2015
weierophinney added a commit that referenced this pull request Oct 9, 2015
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.

1 participant