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

Commit 2ff59a3

Browse files
committed
Adds CHANGELOG for 2.2.0
1 parent 8f6f3ba commit 2ff59a3

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed

CHANGELOG.md

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,114 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5+
## 2.2.0 - 2018-03-12
6+
7+
### Added
8+
9+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) adds the
10+
class `Zend\Expressive\ConfigProvider`, and exposes it to the
11+
zend-component-installer Composer plugin. We recommend updating your
12+
`config/config.php` to reference it, as well as the
13+
`Zend\Expressive\Router\ConfigProvider` shipped with zend-expressive-router
14+
versions 2.4 and up.
15+
16+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) adds the
17+
class `Zend\Expressive\Container\ApplicationConfigInjectionDelegator`. The
18+
class can act as a delegator factory, and, when enabled, will inject routes
19+
and pipeline middleware defined in configuration.
20+
21+
Additionally, the class exposes two static methods:
22+
23+
- `injectPipelineFromConfig(Application $app, array $config)`
24+
- `injectRoutesFromConfig(Application $app, array $config)`
25+
26+
These may be called to modify an `Application` instance based on an array of
27+
configuration. See thd documentation for more details.
28+
29+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) adds the
30+
class `Zend\Expressive\Handler\NotFoundHandler`; the class takes over the
31+
functionality previously provided in `Zend\Expressive\Delegate\NotFoundDelegate`.
32+
33+
### Changed
34+
35+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) updates the
36+
minimum supported zend-stratigility version to 2.2.0.
37+
38+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) updates the
39+
minimum supported zend-expressive-router version to 2.4.0.
40+
41+
### Deprecated
42+
43+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) deprecates
44+
the following classes and traits:
45+
46+
- `Zend\Expressive\AppFactory`: if you are using this, you will need to switch
47+
to direct usage of `Zend\Expressive\Application` or a
48+
`Zend\Stratigility\MiddlewarePipe` instance.
49+
50+
- `Zend\Expressive\ApplicationConfigInjectionTrait`: if you are using it, it is
51+
marked internal, and deprecated; it will be removed in version 3.
52+
53+
- `Zend\Expressive\Container\NotFoundDelegateFactory`: the `NotFoundDelegate`
54+
will be renamed to `Zend\Expressive\Handler\NotFoundHandler` in version 3,
55+
making this factory obsolete.
56+
57+
- `Zend\Expressive\Delegate\NotFoundDelegate`: this class becomes
58+
`Zend\Expressive\Handler\NotFoundHandler` in v3, and the new class is added in
59+
version 2.2 as well.
60+
61+
- `Zend\Expressive\Emitter\EmitterStack`: the emitter concept is extracted from
62+
zend-diactoros to a new component, zend-httphandlerrunner. This latter
63+
component is used in version 3, and defines the `EmitterStack` class. Unless
64+
you are extending it or interacting with it directly, this change should not
65+
affect you; the `Zend\Diactoros\Response\EmitterInterface` service will be
66+
directed to the new class in that version.
67+
68+
- `Zend\Expressive\IsCallableInteropMiddlewareTrait`: if you are using it, it is
69+
marked internal, and deprecated; it will be removed in version 3.
70+
71+
- `Zend\Expressive\MarshalMiddlewareTrait`: if you are using it, it is marked
72+
internal, and deprecated; it will be removed in version 3.
73+
74+
- `Zend\Expressive\Middleware\DispatchMiddleware`: this functionality has been
75+
moved to zend-expressive-router, under the `Zend\Expressive\Router\Middleware`
76+
namespace.
77+
78+
- `Zend\Expressive\Middleware\ImplicitHeadMiddleware`: this functionality has been
79+
moved to zend-expressive-router, under the `Zend\Expressive\Router\Middleware`
80+
namespace.
81+
82+
- `Zend\Expressive\Middleware\ImplicitOptionsMiddleware`: this functionality has been
83+
moved to zend-expressive-router, under the `Zend\Expressive\Router\Middleware`
84+
namespace.
85+
86+
- `Zend\Expressive\Middleware\NotFoundHandler`: this will be removed in
87+
version 3, where you can instead pipe `Zend\Expressive\Handler\NotFoundHandler`
88+
directly instead.
89+
90+
- `Zend\Expressive\Middleware\RouteMiddleware`: this functionality has been
91+
moved to zend-expressive-router, under the `Zend\Expressive\Router\Middleware`
92+
namespace.
93+
94+
- [#581](https://github.com/zendframework/zend-expressive/pull/581) deprecates
95+
the following methods from `Zend\Expressive\Application`:
96+
- `pipeRoutingMiddleware()`
97+
- `pipeDispatchMiddleware()`
98+
- `getContainer()`: this method is removed in version 3; container access will only be via the bootstrap.
99+
- `getDefaultDelegate()`: the concept of a default delegate is removed in version 3.
100+
- `getEmitter()`: emitters move to a different collaborator in version 3.
101+
- `injectPipelineFromConfig()` andd `injectRoutesFromConfig()` are methods
102+
defined by the `ApplicationConfigInjectionTrait`, which will be removed in
103+
version 3. Use the `ApplicationConfigInjectionDelegator` instead.
104+
105+
### Removed
106+
107+
- Nothing.
108+
109+
### Fixed
110+
111+
- Nothing.
112+
5113
## 2.1.1 - 2018-03-09
6114

7115
### Added

0 commit comments

Comments
 (0)