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
BindingInstaller.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Amqp\Topology
;
7
8
use
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItem\BindingInterface
;
9
use PhpAmqpLib\Channel\AMQPChannel;
10
14
class
BindingInstaller
implements
BindingInstallerInterface
15
{
19
private
$installers;
20
26
public
function
__construct
(array $installers)
27
{
28
$this->installers = $installers;
29
}
30
34
public
function
install
(AMQPChannel $channel,
BindingInterface
$binding, $exchangeName)
35
{
36
$this->getInstaller($binding->
getDestinationType
())->
install
($channel, $binding, $exchangeName);
37
}
38
45
private
function
getInstaller(
$type
)
46
{
47
if
(!isset($this->installers[
$type
])) {
48
throw
new \InvalidArgumentException(sprintf(
'Installer type [%s] is not configured'
,
$type
));
49
}
50
return
$this->installers[
$type
];
51
}
52
}
$type
$type
Definition:
item.phtml:13
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItem\BindingInterface
Definition:
BindingInterface.php:11
Magento\Framework\Amqp\Topology
Definition:
ArgumentProcessor.php:6
Magento\Framework\Amqp\Topology\BindingInstaller\__construct
__construct(array $installers)
Definition:
BindingInstaller.php:26
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItem\BindingInterface\getDestinationType
getDestinationType()
Magento\Framework\Amqp\Topology\BindingInstaller\install
install(AMQPChannel $channel, BindingInterface $binding, $exchangeName)
Definition:
BindingInstaller.php:34
Magento\Framework\Amqp\Topology\BindingInstallerInterface
Definition:
BindingInstallerInterface.php:14
Magento\Framework\Amqp\Topology\BindingInstaller
Definition:
BindingInstaller.php:14