Skip to content

Commit

Permalink
Merge pull request #131 from 8p/hotfix_preTransaction
Browse files Browse the repository at this point in the history
Fixing postTransaction event replace request object
  • Loading branch information
Florian Preusner authored Oct 20, 2017
2 parents 35a44f7 + 9132f9e commit edc5f94
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 edc5f94

Please sign in to comment.