Skip to content

Commit ae3b40f

Browse files
committed
error message update
1 parent 23c80c6 commit ae3b40f

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 0.3.2 - unreleased
2+
3+
### Changed
4+
* after dispatch event now considers the event parameter `response` to return if the event listeners did not return a ResponseInterface directly
5+
6+
### Added
7+
* Nothing
8+
9+
### Deprecated
10+
* Nothing
11+
12+
### Removed
13+
* Nothing
14+
15+
### Fixed
16+
* Nothing
17+
18+
119
## 0.3.1 - 2017-05-09
220

321
### Changed

src/AbstractActionController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ public function dispatch(): ResponseInterface
5050
return $r;
5151
}
5252

53+
$eventResponse = $r->getParam('response');
54+
if ($eventResponse instanceof ResponseInterface) {
55+
$response = $eventResponse;
56+
}
57+
5358
return $response;
5459
}
5560

0 commit comments

Comments
 (0)