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

Commit 5fdb648

Browse files
committed
Extracts CHANGELOG entries for #546 into 3.0.0alpha3 release
1 parent ba80db2 commit 5fdb648

File tree

1 file changed

+46
-16
lines changed

1 file changed

+46
-16
lines changed

CHANGELOG.md

Lines changed: 46 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,44 @@
22

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

5+
## 3.0.0alpha3 - 2018-02-06
6+
7+
### Added
8+
9+
- Nothing.
10+
11+
### Changed
12+
13+
- [#546](https://github.com/zendframework/zend-expressive/pull/546) merges
14+
`Zend\Expressive\Middleware\NotFoundHandler` into
15+
`Zend\Expressive\Middleware\NotFoundMiddleware`, as well as merges
16+
`Zend\Expressive\Container\NotFoundHandlerFactory` into
17+
`Zend\Expressive\Container\NotFoundMiddlewareFactory`. `NotFoundMiddleware`
18+
now does the work of the former `Zend\Expressive\Delegate\NotFoundDelegate`,
19+
and, as such, accepts the following constructor arguments:
20+
21+
- PSR-7 `ResponseInterface $responsePrototype` (required)
22+
- `Zend\Expressive\Template\TemplateRendererInterface $renderer` (optional)
23+
- `string $template = self::TEMPLATE_DEFAULT` (optional; defaults to "error::404")
24+
- `string $layout = self::LAYOUT_DEFAULT` (optional; defaults to "layout::default")
25+
26+
### Deprecated
27+
28+
- Nothing.
29+
30+
### Removed
31+
32+
- [#546](https://github.com/zendframework/zend-expressive/pull/546) removes the
33+
class `Zend\Expressive\Delegate\DefaultDelegate`, as there is no longer a
34+
concept of a default handler invoked by the application. Instead, developers
35+
MUST pipe middleware at the innermost layer of the pipeline guaranteed to
36+
return a response; we recommend using `Zend\Expressive\Middleware\NotFoundMiddleware`
37+
for this purpose.
38+
39+
### Fixed
40+
41+
- Nothing.
42+
543
## 3.0.0alpha2 - 2018-02-05
644

745
### Added
@@ -97,19 +135,18 @@ All notable changes to this project will be documented in this file, in reverse
97135

98136
and removes the dependency http-interop/http-server-middleware.
99137

100-
- [#543](https://github.com/zendframework/zend-expressive/pull/543) and
101-
[#546](https://github.com/zendframework/zend-expressive/pull/546) renames the
138+
- [#543](https://github.com/zendframework/zend-expressive/pull/543) renames
102139
`Zend\Expressive\Middleware\NotFoundHandler` to
103140
`Zend\Expressive\Middleware\NotFoundMiddleware`, and its accompanying factory
104141
`Zend\Expressive\Container\NotFoundHandlerFactory` to
105-
`Zend\Expressive\Container\NotFoundMiddlewareFactory`. Additionally, the
106-
class now does the work of the former `Zend\Expressive\Delegate\NotFoundDelegate`,
107-
and, as such, accepts the following constructor arguments:
142+
`Zend\Expressive\Container\NotFoundMiddlewareFactory`.
108143

109-
- PSR-7 `ResponseInterface $responsePrototype` (required)
110-
- `Zend\Expressive\Template\TemplateRendererInterface $renderer` (optional)
111-
- `string $template = self::TEMPLATE_DEFAULT` (optional; defaults to "error::404")
112-
- `string $layout = self::LAYOUT_DEFAULT` (optional; defaults to "layout::default")
144+
- [#543](https://github.com/zendframework/zend-expressive/pull/543) renames
145+
`Zend\Expressive\Delegate\NotFoundDelegate` to
146+
`Zend\Expressive\Handler\NotFoundHandler`, updating it to implement the PSR-15
147+
`RequestHandlerInterface`. It also renames the factory
148+
`Zend\Expressive\Container\NotFoundDelegateFactory` to
149+
`Zend\Expressive\Container\NotFoundHandlerFactory`.
113150

114151
- [#543](https://github.com/zendframework/zend-expressive/pull/543) refactors
115152
`Zend\Expressive\Application` completely.
@@ -188,13 +225,6 @@ All notable changes to this project will be documented in this file, in reverse
188225
- [#543](https://github.com/zendframework/zend-expressive/pull/543) removes
189226
support for http-interop/http-server-middleware.
190227

191-
- [#546](https://github.com/zendframework/zend-expressive/pull/546) removes the
192-
class `Zend\Expressive\Delegate\DefaultDelegate`, as there is no longer a
193-
concept of a default handler invoked by the application. Instead, developers
194-
MUST pipe middleware at the innermost layer of the pipeline guaranteed to
195-
return a response; we recommend using `Zend\Expressive\Middleware\NotFoundMiddleware`
196-
for this purpose.
197-
198228
- [#543](https://github.com/zendframework/zend-expressive/pull/543) removes the
199229
class `Zend\Expressive\Middleware\RouteMiddleware`. Use the
200230
`PathBasedRoutingMiddleware` or `RouteMiddleware` from zend-expressive-router

0 commit comments

Comments
 (0)