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

Commit

Permalink
Merge branch 'feature/deprecator-removal' into dev-2.0.0
Browse files Browse the repository at this point in the history
Close #71
  • Loading branch information
weierophinney committed Sep 30, 2016
2 parents 2f44424 + 4a5e7e4 commit ffec56d
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 1,165 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,28 @@ details.
`$out` argument of `Zend\Stratigility\MiddlewareInterface()` to `$next`, and
now *requires* the argument. Each of the following `MiddlewareInterface`
implementations were updated accordingly:

- `Zend\Stratigility\MiddlewarePipe`
- `Zend\Stratigility\Middleware\ErrorHandler`
- `Zend\Stratigility\Middleware\NotFoundHandler`

- [#67](https://github.com/zendframework/zend-stratigility/pull/67) modifies
the internals of `Zend\Stratigility\MiddlewarePipe`'s `__invoke()` method.

- When instantiating the `Next` instance, it now captures it in a variable
named `$layer`.
- If the result of `Next` is not a response instance, the response passed
during invocation is promoted as the layer response.
- The response is then passed to the `$next` argument provided at invocation,
and the result of that returned without verification.

In most cases, this should have no impact on your application.

- [#71](https://github.com/zendframework/zend-stratigility/pull/71) modifies
`Zend\Stratigility\MiddlewarePipe` such that it no longer decorates the
request and response provided at invocation with the
`Zend\Stratigility\Http\*` variants, as these have been removed.

### Deprecated

- Nothing.
Expand All @@ -57,6 +66,12 @@ details.
`Zend\Stratigility\Middleware\ErrorHandler` instead.
- [#67](https://github.com/zendframework/zend-stratigility/pull/67) removes
the `$done` argument to the `Zend\Stratigility\Next` constructor.
- [#71](https://github.com/zendframework/zend-stratigility/pull/71) removes
the `Zend\Stratigility\Http\Request` class.
- [#71](https://github.com/zendframework/zend-stratigility/pull/71) removes
the `Zend\Stratigility\Http\Response` class.
- [#71](https://github.com/zendframework/zend-stratigility/pull/71) removes
`Zend\Stratigility\Http\ResponseInterface`.

### Fixed

Expand Down
5 changes: 4 additions & 1 deletion doc/book/migration/to-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Finally, if you are creating an `onerror` handler for the `FinalHandler`, update
your typehints to refer to the PSR-7 request and response interfaces instead of
the Stratigility decorators, if you aren't already.

The `Zend\Stratigility\Http` classes, interfaces, and namespace will be removed
The `Zend\Stratigility\Http` classes, interfaces, and namespace are removed
in version 2.0.0.

## Error handling
Expand Down Expand Up @@ -175,3 +175,6 @@ The following classes, methods, and arguments are removed starting in version
internally.
- The `$err` argument to `Zend\Stratigility\Next`'s `__invoke()` method. If
passed, it will now be ignored.
- `Zend\Stratigility\Http\Request` (class)
- `Zend\Stratigility\Http\ResponseInterface` (interface)
- `Zend\Stratigility\Http\Response` (class)
Loading

0 comments on commit ffec56d

Please sign in to comment.