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
Consumer
Config.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\MessageQueue\Consumer
;
7
8
use
Magento\Framework\Exception\LocalizedException
;
9
use
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\Iterator
;
10
use
Magento\Framework\Phrase
;
11
15
class
Config
implements
ConfigInterface
16
{
22
private
$iterator;
23
29
public
function
__construct
(
Iterator
$iterator)
30
{
31
$this->iterator =
$iterator
;
32
}
33
37
public
function
getConsumer
(
$name
)
38
{
39
$consumer = $this->iterator[
$name
];
40
if
(!$consumer) {
41
throw
new
LocalizedException
(
new
Phrase
(
"Consumer '%consumer' is not declared."
, [
'consumer'
=>
$name
]));
42
}
43
return
$consumer;
44
}
45
49
public
function
getConsumers
()
50
{
51
return
$this->iterator;
52
}
53
}
Magento\Framework\Exception\LocalizedException
Definition:
LocalizedException.php:17
Magento\Framework\MessageQueue\Consumer
$iterator
$iterator
Definition:
deployTestModules.php:14
Magento\Framework\MessageQueue\Consumer\Config\getConsumer
getConsumer($name)
Definition:
Config.php:37
Magento\Framework\MessageQueue\Consumer\Config\getConsumers
getConsumers()
Definition:
Config.php:49
Magento\Framework\MessageQueue\Consumer\Config\__construct
__construct(Iterator $iterator)
Definition:
Config.php:29
Magento\Framework\Phrase
Definition:
Phrase.php:17
Magento\Framework\Phrase
Magento\Framework\MessageQueue\Consumer\Config\ConsumerConfigItem\Iterator
Definition:
Iterator.php:15
Magento\Framework\MessageQueue\Consumer\Config
Definition:
Config.php:15
Magento\Framework\MessageQueue\Consumer\ConfigInterface
Definition:
ConfigInterface.php:17
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14