Skip to content

Commit

Permalink
replaced response by $postTransactionEvent->getTransaction(); additio…
Browse files Browse the repository at this point in the history
…nal fix for PR #119 (Fixing preTransaction event replace request object)
  • Loading branch information
Florian Preusner committed Oct 20, 2017
1 parent 35a44f7 commit 9132f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Middleware/EventDispatchMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function (ResponseInterface $response) {
$this->eventDispatcher->dispatch(GuzzleEvents::POST_TRANSACTION, $postTransactionEvent);

// Continue down the chain.
return $response;
return $postTransactionEvent->getTransaction();
},
function (Exception $reason) {
// Get the response. The response in a RequestException can be null too.
Expand Down

0 comments on commit 9132f9e

Please sign in to comment.