Skip to content

Commit fbf4a34

Browse files
ACPT-1327
add _resetState for resetting HTTP client in Magento/Framework/HTTP/LaminasClient
1 parent 22a07ee commit fbf4a34

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/internal/Magento/Framework/HTTP/LaminasClient.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212

1313
use Laminas\Http\Client;
1414
use Magento\Framework\HTTP\Adapter\Curl;
15+
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
1516
use Traversable;
1617

17-
class LaminasClient extends Client
18+
class LaminasClient extends Client implements ResetAfterRequestInterface
1819
{
1920
/**
2021
* Internal flag to allow decoding of request body
@@ -37,6 +38,15 @@ public function __construct($uri = null, $options = null)
3738
parent::__construct($uri, $options);
3839
}
3940

41+
/**
42+
* @inheritDoc
43+
*/
44+
public function _resetState(): void
45+
{
46+
$this->reset();
47+
}
48+
49+
4050
/**
4151
* Change value of internal flag to disable/enable custom prepare functionality
4252
*

0 commit comments

Comments
 (0)