Closed sandrokeil closed 7 years ago
We should always call $next instead of returning the response directly to allow, that other middlewares can be executed after the prooph middlewares. Here is the rule
$next
$response
What do you think?
consider https://github.com/http-interop/http-middleware
Close this in favor of #21 which solves this issue.
We should always call
$next
instead of returning the response directly to allow, that other middlewares can be executed after the prooph middlewares. Here is the rule$response
only if an error is occured$next
with the new responseWhat do you think?