Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Exchange.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Amqp\Model;
7 
9 use Magento\Framework\Communication\ConfigInterface as CommunicationConfigInterface;
12 
19 {
30  public function __construct(
31  Config $amqpConfig,
32  QueueConfig $queueConfig,
33  CommunicationConfigInterface $communicationConfig,
34  $rpcConnectionTimeout = self::RPC_CONNECTION_TIMEOUT
35  ) {
36  parent::__construct(
37  $amqpConfig,
38  $this->getPublisherConfig(),
39  $this->getResponseQueueNameBuilder(),
40  $communicationConfig,
41  $rpcConnectionTimeout
42  );
43  }
44 
52  private function getPublisherConfig()
53  {
54  return \Magento\Framework\App\ObjectManager::getInstance()->get(PublisherConfig::class);
55  }
56 
64  private function getResponseQueueNameBuilder()
65  {
66  return \Magento\Framework\App\ObjectManager::getInstance()->get(ResponseQueueNameBuilder::class);
67  }
68 }
__construct(Config $amqpConfig, QueueConfig $queueConfig, CommunicationConfigInterface $communicationConfig, $rpcConnectionTimeout=self::RPC_CONNECTION_TIMEOUT)
Definition: Exchange.php:30