Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework-amqp
Topology
ExchangeInstaller.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Amqp\Topology
;
7
8
use
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface
;
9
13
class
ExchangeInstaller
14
{
15
use ArgumentProcessor;
16
20
private
$bindingInstaller;
21
27
public
function
__construct
(
BindingInstallerInterface
$bindingInstaller)
28
{
29
$this->bindingInstaller = $bindingInstaller;
30
}
31
39
public
function
install
(\PhpAmqpLib\Channel\AMQPChannel $channel,
ExchangeConfigItemInterface
$exchange)
40
{
41
$channel->exchange_declare(
42
$exchange->
getName
(),
43
$exchange->
getType
(),
44
false
,
45
$exchange->
isDurable
(),
46
$exchange->
isAutoDelete
(),
47
$exchange->
isInternal
(),
48
false
,
49
$this->processArguments($exchange->
getArguments
())
50
);
51
52
foreach
($exchange->
getBindings
() as $binding) {
53
$this->bindingInstaller->install($channel, $binding, $exchange->
getName
());
54
}
55
}
56
}
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface\getBindings
getBindings()
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface\getName
getName()
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface
Definition:
ExchangeConfigItemInterface.php:13
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface\isAutoDelete
isAutoDelete()
Magento\Framework\Amqp\Topology\ExchangeInstaller\__construct
__construct(BindingInstallerInterface $bindingInstaller)
Definition:
ExchangeInstaller.php:27
Magento\Framework\Amqp\Topology\ExchangeInstaller
Definition:
ExchangeInstaller.php:13
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface\getArguments
getArguments()
Magento\Framework\Amqp\Topology\ExchangeInstaller\install
install(\PhpAmqpLib\Channel\AMQPChannel $channel, ExchangeConfigItemInterface $exchange)
Definition:
ExchangeInstaller.php:39
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface\isDurable
isDurable()
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface\isInternal
isInternal()
Magento\Framework\Amqp\Topology
Definition:
ArgumentProcessor.php:6
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItemInterface\getType
getType()
Magento\Framework\Amqp\Topology\BindingInstallerInterface
Definition:
BindingInstallerInterface.php:14