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-message-queue
Bulk
ExchangeRepository.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\MessageQueue\Bulk
;
7
11
class
ExchangeRepository
12
{
16
private
$exchangeFactory;
17
23
private
$exchangePool = [];
24
28
public
function
__construct
(
ExchangeFactoryInterface
$exchangeFactory)
29
{
30
$this->exchangeFactory = $exchangeFactory;
31
}
32
40
public
function
getByConnectionName
($connectionName)
41
{
42
if
(!isset($this->exchangePool[$connectionName])) {
43
$exchange = $this->exchangeFactory->create($connectionName);
44
$this->exchangePool[$connectionName] = $exchange;
45
}
46
return
$this->exchangePool[$connectionName];
47
}
48
}
Magento\Framework\MessageQueue\Bulk\ExchangeRepository
Definition:
ExchangeRepository.php:11
Magento\Framework\MessageQueue\Bulk\ExchangeRepository\__construct
__construct(ExchangeFactoryInterface $exchangeFactory)
Definition:
ExchangeRepository.php:28
Magento\Framework\MessageQueue\Bulk
Definition:
ExchangeFactory.php:6
Magento\Framework\MessageQueue\Bulk\ExchangeRepository\getByConnectionName
getByConnectionName($connectionName)
Definition:
ExchangeRepository.php:40
Magento\Framework\MessageQueue\Bulk\ExchangeFactoryInterface
Definition:
ExchangeFactoryInterface.php:14