Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Topology.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Amqp\Model;
7 
11 use Magento\Framework\Communication\ConfigInterface as CommunicationConfig;
16 
23 {
29  const TOPIC_EXCHANGE = 'topic';
30 
34  const AMQP_CONNECTION = 'amqp';
35 
41  const IS_DURABLE = true;
42 
52  public function __construct(
53  Config $amqpConfig,
54  QueueConfig $queueConfig,
55  CommunicationConfig $communicationConfig,
56  \Psr\Log\LoggerInterface $logger
57  ) {
58  parent::__construct(
59  \Magento\Framework\App\ObjectManager::getInstance()->get(TopologyConfig::class),
60  \Magento\Framework\App\ObjectManager::getInstance()->get(ExchangeInstaller::class),
61  \Magento\Framework\App\ObjectManager::getInstance()->get(ConfigPool::class),
62  \Magento\Framework\App\ObjectManager::getInstance()->get(QueueInstaller::class),
63  \Magento\Framework\App\ObjectManager::getInstance()->get(ConnectionTypeResolver::class),
64  $logger
65  );
66  }
67 }
__construct(Config $amqpConfig, QueueConfig $queueConfig, CommunicationConfig $communicationConfig, \Psr\Log\LoggerInterface $logger)
Definition: Topology.php:52