Skip to content

Commit

Permalink
updated middlewares/utils to 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Feb 5, 2017
1 parent 0e19f94 commit ddd52ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 0.4.0 - 2017-02-05

### Changed

* Updated to `middlewares/utils#~0.9

## 0.3.0 - 2016-12-26

### Changed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"require": {
"php": "^5.6 || ^7.0",
"http-interop/http-middleware": "^0.4",
"middlewares/utils": "~0.8"
"middlewares/utils": "~0.9"
},
"require-dev": {
"phpunit/phpunit": "^5.5",
Expand Down
3 changes: 2 additions & 1 deletion src/Shutdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Middlewares;

use Middlewares\Utils\CallableResolver\ReflectionResolver;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\ResponseInterface;
use Interop\Http\ServerMiddleware\MiddlewareInterface;
Expand Down Expand Up @@ -75,7 +76,7 @@ public function retryAfter($retryAfter)
public function process(ServerRequestInterface $request, DelegateInterface $delegate)
{
$arguments = array_merge([$request], $this->arguments);
$callable = Utils\CallableHandler::resolve($this->handler, $arguments);
$callable = (new ReflectionResolver())->resolve($this->handler, $arguments);

$response = Utils\CallableHandler::execute($callable, $arguments)->withStatus(503);

Expand Down

0 comments on commit ddd52ff

Please sign in to comment.