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

Commit

Permalink
Added CHANGELOG for #70
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Sep 30, 2016
1 parent 227406f commit f184106
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,27 @@ details.
middleware you invoke as the application). This handler returns the response
provided to it verbatim.

- [#70](https://github.com/zendframework/zend-stratigility/pull/70) adds a new
class, `Zend\Stratigility\Middleware\OriginalMessages`. Compose this
middleware in an outermost layer, and it will inject the following attributes
in the request passed to nested layers:

- `originalRequest`, representing the request provided to it.
- `originalResponse`, representing the response provided to it.
- `originalUri`, representing URI instance composed in the request provided to it.

### Changed

- [#70](https://github.com/zendframework/zend-stratigility/pull/70) makes the
following changes to `Zend\Stratigility\FinalHandler`:

- It now pulls the original request using the `originalRequest` attribute,
instead of `getOriginalRequest()`; see the deprecation of
`Zend\Stratigility\Http\Request`, below, for why this works.
- It no longer writes to the response using the
`Zend\Stratigility\Http\Response`-specific `write()` method, but rather
pulls the message body and writes to that.

### Deprecated

- [#66](https://github.com/zendframework/zend-stratigility/pull/66) deprecates
Expand All @@ -66,6 +87,22 @@ details.
a non-null `$err` argument is provided; middleware should raise an exception,
instead of invoking middleware implementing `ErrorMiddlewareInterface`.

- [#70](https://github.com/zendframework/zend-stratigility/pull/70) deprecates
`Zend\Stratigility\Http\Request`. Additionally:

- The composed "PSR Request" is now injected with an additional attribute,
`originalRequest`, allowing retrieval using standard PSR-7 attribute access.
- The methods `getCurrentRequest()` and `getOriginalRequest()` now emit
deprecation notices when invoked, urging users to update their code.

- [#70](https://github.com/zendframework/zend-stratigility/pull/70) deprecates
`Zend\Stratigility\Http\ResponseInterface`.

- [#70](https://github.com/zendframework/zend-stratigility/pull/70) deprecates
`Zend\Stratigility\Http\Response`. Additionally, the methods `write()`,
`end()`, `isComplete()`, and `getOriginalResponse()` now emit deprecation
notices when invoked, urging users to update their code.

### Removed

- Nothing.
Expand Down

0 comments on commit f184106

Please sign in to comment.