Skip to content

Commit

Permalink
SendingHandler now intneded to be first middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Jun 6, 2015
1 parent 11a9a1e commit 082cb55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Handler/SendingHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public function __construct(Sender $sender)

public function __invoke(Request $request, Response $response, callable $next)
{
$response = $next($request, $response);
$this->sender->send($response);
return $next($request, $response);
return $response;
}
}

0 comments on commit 082cb55

Please sign in to comment.