From 9132f9e3e6e1c6c22e786e360843a3ac96d92b1f Mon Sep 17 00:00:00 2001 From: Florian Preusner Date: Fri, 20 Oct 2017 16:38:55 +0200 Subject: [PATCH] replaced response by $postTransactionEvent->getTransaction(); additional fix for PR #119 (Fixing preTransaction event replace request object) --- Middleware/EventDispatchMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Middleware/EventDispatchMiddleware.php b/Middleware/EventDispatchMiddleware.php index 3b95ecf..5f7c2ce 100644 --- a/Middleware/EventDispatchMiddleware.php +++ b/Middleware/EventDispatchMiddleware.php @@ -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.