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

Commit fba7a9b

Browse files
committed
List deprecations for version 1.1.0
1 parent 9736bcc commit fba7a9b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

doc/book/reference/migration/to-v1-1.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,53 @@ Expressive 1.1 should not result in any upgrade problems for users. However,
44
starting in this version, we offer a few changes affecting the following that
55
you should be aware of, and potentially update your application to adopt:
66

7+
- Deprecations
78
- Original request and response messages
89
- Recommendation to use programmatic pipelines
910
- Error handling
1011

12+
## Deprecations
13+
14+
The following classes and/or methods are deprecated with the 1.1.0 release, and
15+
will be removed for the 2.0 release:
16+
17+
- `Zend\Expressive\Application::pipeErrorHandler()`: Stratigility v1 error
18+
middleware are removed in the Stratigility v2 release, which Expressive 2.0 will
19+
adopt.
20+
21+
- `Zend\Expressive\Application::routeMiddleware()`: routing middleware moves to
22+
a dedicated class starting in Expressive 2.0. If you were referencing the
23+
method in order to pipe it as middleware, use `pipeRoutingMiddleware()` or
24+
`pipe(ApplicationFactory::ROUTING_MIDDLEWARE)` instead.
25+
26+
- `Zend\Expressive\Application::dispatchMiddleware()`: dispatch middleware moves
27+
to a dedicated class starting in Expressive 2.0.If you were referencing the
28+
method in order to pipe it as middleware, use `pipeDispatchMiddleware()` or
29+
`pipe(ApplicationFactory::DISPATCH_MIDDLEWARE)` instead.
30+
31+
- `Zend\Expressive\Application::getFinalHandler()`: this method gets renamed to
32+
`getDefaultDelegate()` in Expressive 2.0. We recommend retrieving the value
33+
from the application dependency injection container if you need it elsewhere.
34+
35+
- `Zend\Expressive\Application::raiseThrowables()`: this method becomes a no-op
36+
in Stratigility 2.0, on which Expressive 2.0 is based; the behavior it enabled
37+
becomes the default behavior in that version.
38+
39+
- `Zend\Expressive\Container\Exception\InvalidArgumentException`: this exception
40+
type is thrown by `ApplicationFactory`; in Expressive 2.0, it throws
41+
`Zend\Expressive\Exception\InvalidArgumentException` instead.
42+
43+
- `Zend\Expressive\Container\Exception\NotFoundException`: this exception type
44+
is not currently used anyways.
45+
46+
- `Zend\Expressive\ErrorMiddlewarePipe`: Stratigility v1 error middleware are
47+
removed in the Stratigility v2 release, which Expressive 2.0 will adopt,
48+
making this specialized middleware pipe type irrelvant.
49+
50+
If you were calling any of these directly, or extending or overriding them, you
51+
will need to update your code to work for version 2.0. We recommend not using
52+
these.
53+
1154
## Original messages
1255

1356
Stratigility 1.3 deprecates its internal request and response decorators,

0 commit comments

Comments
 (0)