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

Commit 6829417

Browse files
committed
Adds CHANGELOG entries for 0.5.2 and #29
1 parent 0c8a5c8 commit 6829417

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

CHANGELOG.md

+35
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,41 @@ All notable changes to this project will be documented in this file, in reverse
44

55
Versions 0.3.0 and prior were released as "weierophinney/problem-details".
66

7+
## 0.5.2 - 2018-01-10
8+
9+
### Added
10+
11+
- [#29](https://github.com/zendframework/zend-problem-details/pull/29) adds
12+
the ability for the `ProblemDetailsMiddleware` to trigger listeners when
13+
it catches a `Throwable` to produce a response. Listeners are PHP callables
14+
and receive the following arguments, in the following order:
15+
16+
- `Throwable $error`: the throwable/exception caught by the
17+
`ProblemDetailsMiddleware`.
18+
- `ServerRequestInterface $request`: the request handled by the
19+
`ProblemDetailsMiddleware`.
20+
- `ResponseInterface $response`: the response generated by the
21+
`ProblemDetailsMiddleware`.
22+
23+
Attach listeners using the `ProblemDetailsMiddleware::attachListeners()`
24+
instance method.
25+
26+
### Changed
27+
28+
- Nothing.
29+
30+
### Deprecated
31+
32+
- Nothing.
33+
34+
### Removed
35+
36+
- Nothing.
37+
38+
### Fixed
39+
40+
- Nothing.
41+
742
## 0.5.1 - 2017-12-07
843

944
### Added

0 commit comments

Comments
 (0)