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

Commit 92ad9c7

Browse files
committed
Added CHANGELOG for #429
1 parent 987a11e commit 92ad9c7

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

CHANGELOG.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,30 @@ All notable changes to this project will be documented in this file, in reverse
2020

2121
- [#429](https://github.com/zendframework/zend-expressive/pull/429) deprecates
2222
the following methods and classes:
23-
- `Zend\Expressive\Application::pipeErrorHandler()`
24-
- `Zend\Expressive\Application::routeMiddleware()`
25-
- `Zend\Expressive\Application::dispatchMiddleware()`
23+
- `Zend\Expressive\Application::pipeErrorHandler()`; use the
24+
`raise_throwables` flag and standard middleware to handle errors instead.
25+
- `Zend\Expressive\Application::routeMiddleware()`; this is extracted to a
26+
dedicated middleware class for 2.0.
27+
- `Zend\Expressive\Application::dispatchMiddleware()`; this is extracted to a
28+
dedicated middleware class for 2.0.
2629
- `Zend\Expressive\Application::getFinalHandler()` (this patch provides `getDefaultDelegate()` as a forwards-compatibility measure)
27-
- `Zend\Expressive\Container\InvalidArgumentException`
28-
- `Zend\Expressive\Container\NotFoundException`
30+
- `Zend\Expressive\Container\Exception\InvalidArgumentException`; this will be removed
31+
in 2.0.0, and places where it was used will instead throw
32+
`Zend\Expressive\Exception\InvalidArgumentException`.
33+
- `Zend\Expressive\Container\Exception\NotFoundException`; this exception is
34+
never thrown at this point.
2935
- `Zend\Expressive\Container\TemplatedErrorHandlerFactory`
3036
- `Zend\Expressive\Container\WhoopsErrorHandlerFactory`
31-
- `Zend\Expressive\ErrorMiddlewarePipe`
32-
- `Zend\Expressive\TemplatedErrorHandler`
37+
- `Zend\Expressive\ErrorMiddlewarePipe`; Stratigility 1.3 deprecates its
38+
`Zend\Stratigility\ErrorMiddlewareInterface`, and removes it in version 2.0.
39+
use the `raise_throwables` flag and standard middleware to handle errors
40+
instead.
41+
- `Zend\Expressive\TemplatedErrorHandler`; the "final handler" concept is
42+
retired in Expressive 2.0, and replaced with default delegates (classes
43+
implementing `Interop\Http\ServerMiddleware\DelegateInterface` that will be
44+
executed when the internal pipeline is exhausted, in order to guarantee a
45+
response). If you are using custom final handlers, you will need to rewrite
46+
them when adopting Expressive 2.0.
3347
- `Zend\Expressive\WhoopsErrorHandler`
3448

3549
### Removed

0 commit comments

Comments
 (0)