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
Topology
Config.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\MessageQueue\Topology
;
8
9
use
Magento\Framework\Exception\LocalizedException
;
10
use
Magento\Framework\Phrase
;
11
use
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItem\Iterator
as ExchangeIterator;
12
use
Magento\Framework\MessageQueue\Topology\Config\QueueConfigItem\Iterator
as QueueIterator;
13
17
class
Config
implements
ConfigInterface
18
{
24
private
$exchangeIterator;
25
31
private
$queueIterator;
32
39
public
function
__construct
(ExchangeIterator $exchangeIterator, QueueIterator $queueIterator)
40
{
41
$this->exchangeIterator = $exchangeIterator;
42
$this->queueIterator = $queueIterator;
43
}
44
48
public
function
getExchange
(
$name
,
$connection
)
49
{
50
$topology = $this->exchangeIterator[
$name
.
'--'
.
$connection
];
51
if
(!$topology) {
52
throw
new
LocalizedException
(
53
new
Phrase
(
54
'The "%exchange" exchange is not declared for the "%connection" connection. Verify and try again.'
,
55
[
56
'exchange'
=>
$name
,
57
'connection'
=>
$connection
58
]
59
)
60
);
61
}
62
return
$topology;
63
}
64
68
public
function
getExchanges
()
69
{
70
return
$this->exchangeIterator;
71
}
72
76
public
function
getQueues
()
77
{
78
return
$this->queueIterator;
79
}
80
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Framework\MessageQueue\Topology\Config\__construct
__construct(ExchangeIterator $exchangeIterator, QueueIterator $queueIterator)
Definition:
Config.php:39
Magento\Framework\MessageQueue\Topology\Config\ExchangeConfigItem\Iterator
Definition:
Iterator.php:15
Magento\Framework\MessageQueue\Topology\Config\getQueues
getQueues()
Definition:
Config.php:76
Magento\Framework\MessageQueue\Topology\Config\getExchange
getExchange($name, $connection)
Definition:
Config.php:48
Magento\Framework\MessageQueue\Topology\Config\getExchanges
getExchanges()
Definition:
Config.php:68
Magento\Framework\MessageQueue\Topology\Config\QueueConfigItem\Iterator
Definition:
Iterator.php:14
Magento\Framework\MessageQueue\Topology\ConfigInterface
Definition:
ConfigInterface.php:18
Magento\Framework\MessageQueue\Topology\Config
Definition:
Config.php:17
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
$connection
$connection
Definition:
bulk.php:13
Magento\Framework\MessageQueue\Topology
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14