Skip to content

Commit 93872e9

Browse files
committed
updated to middlewares/utils 0.9
1 parent 3534b56 commit 93872e9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## 0.5.0 - 2017-02-05
8+
9+
### Changed
10+
11+
* Updated to `middlewares/utils#~0.9
12+
713
## 0.4.0 - 2016-12-26
814

915
### Changed

src/ErrorHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Middlewares;
44

5+
use Middlewares\Utils\CallableResolver\ReflectionResolver;
56
use Psr\Http\Message\ServerRequestInterface;
67
use Psr\Http\Message\ResponseInterface;
78
use Interop\Http\ServerMiddleware\MiddlewareInterface;
@@ -155,8 +156,9 @@ private function handleError(ServerRequestInterface $request, $statusCode, $exce
155156
'status_code' => $statusCode,
156157
'exception' => $exception,
157158
]);
159+
158160
$arguments = array_merge([$request], $this->arguments);
159-
$callable = Utils\CallableHandler::resolve($this->handler, $arguments);
161+
$callable = (new ReflectionResolver())->resolve($this->handler, $arguments);
160162

161163
return Utils\CallableHandler::execute($callable, $arguments);
162164
}

0 commit comments

Comments
 (0)