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

Commit 457bc1f

Browse files
committed
Adds CHANGELOG entries for #562
1 parent 9f948f3 commit 457bc1f

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ All notable changes to this project will be documented in this file, in reverse
66

77
### Added
88

9-
- Nothing.
9+
- [#562](https://github.com/zendframework/zend-expressive/pull/562) adds the
10+
class `Zend\Expressive\Response\ServerRequestErrorResponseGenerator`, and maps
11+
it to the `Zend\Expressive\Container\ServerRequestErrorResponseGeneratorFactory`.
12+
The class generates an error response when an exeption occurs producing a
13+
server request instance, and can be optionally templated.
1014

1115
### Changed
1216

@@ -20,13 +24,28 @@ All notable changes to this project will be documented in this file, in reverse
2024
creates, as that class changes in 3.0.0alpha4 such that it now expects a
2125
factory instead of an instance.
2226

27+
- [#562](https://github.com/zendframework/zend-expressive/pull/562) modifies the
28+
`Zend\Expressive\Container\RequestHandlerRunnerFactory` to depend on the
29+
`Zend\Expressive\Response\ServerRequestErrorResponseGenerator` service instead
30+
of the `Zend\Expressive\SERVER_REQUEST_ERROR_RESPONSE_GENERATOR` virtual
31+
service.
32+
33+
- [#562](https://github.com/zendframework/zend-expressive/pull/562) extracts
34+
most logic from `Zend\Expressive\Middleware\ErrorResponseGenerator` to a new
35+
trait, `Zend\Expressive\Response\ErrorResponseGeneratorTrait`. A trait was
36+
used as the classes consuming it are from different namespaces, and thus
37+
different inheritance trees. The trait is used by both the
38+
`ErrorResponseGenerator` and the new `ServerRequestErrorResponseGenerator`.
39+
2340
### Deprecated
2441

2542
- Nothing.
2643

2744
### Removed
2845

29-
- Nothing.
46+
- [#562](https://github.com/zendframework/zend-expressive/pull/562) removes the
47+
constant `Zend\Expressive\SERVER_REQUEST_ERROR_RESPONSE_GENERATOR`. It was
48+
only used internally previously.
3049

3150
### Fixed
3251

0 commit comments

Comments
 (0)