Skip to content

Commit c0c4834

Browse files
Merge branch '2.4-develop' into GL_PR_Arrows_July_03_2024
2 parents 876b4bc + 60e840c commit c0c4834

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/internal/Magento/Framework/Amqp/Config.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Magento\Framework\Amqp\Connection\FactoryOptions;
1010
use Magento\Framework\App\DeploymentConfig;
1111
use Magento\Framework\App\ObjectManager;
12+
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
1213
use PhpAmqpLib\Channel\AMQPChannel;
1314
use PhpAmqpLib\Connection\AbstractConnection;
1415

@@ -18,7 +19,7 @@
1819
* @api
1920
* @since 103.0.0
2021
*/
21-
class Config
22+
class Config implements ResetAfterRequestInterface
2223
{
2324
/**
2425
* Queue config key
@@ -123,6 +124,14 @@ public function __destruct()
123124
}
124125
}
125126

127+
/**
128+
* @inheritDoc
129+
*/
130+
public function _resetState(): void
131+
{
132+
$this->closeConnection();
133+
}
134+
126135
/**
127136
* Returns the configuration set for the key.
128137
*

0 commit comments

Comments
 (0)