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

Commit

Permalink
Merge branch 'hotfix/597'
Browse files Browse the repository at this point in the history
Close #597
  • Loading branch information
weierophinney committed Mar 19, 2018
2 parents 14d18fa + 5919d3a commit 13aabfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiddlewareFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function prepare($middleware) : MiddlewareInterface
}

if ($middleware instanceof RequestHandlerInterface) {
return new RequestHandlerMiddleware($middleware);
return $this->handler($middleware);
}

if (is_callable($middleware)) {
Expand Down

0 comments on commit 13aabfd

Please sign in to comment.