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
Publisher
Config
CompositeValidator.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\MessageQueue\Publisher\Config
;
7
11
class
CompositeValidator
implements
ValidatorInterface
12
{
18
private
$validators;
19
25
public
function
__construct
($validators)
26
{
27
$this->validators = $validators;
28
}
29
38
public
function
validate
(
$configData
)
39
{
40
foreach
($this->validators as $validator) {
41
if
(!$validator instanceof
ValidatorInterface
) {
42
throw
new \LogicException(
43
sprintf(
44
'Validator [%s] does not implements '
.
45
'Magento\Framework\MessageQueue\Publisher\Config\ValidatorInterface'
,
46
get_class($validator)
47
)
48
);
49
}
50
$validator->validate(
$configData
);
51
}
52
}
53
}
Magento\Framework\MessageQueue\Publisher\Config\CompositeValidator\validate
validate($configData)
Definition:
CompositeValidator.php:38
Magento\Framework\MessageQueue\Publisher\Config\ValidatorInterface
Definition:
ValidatorInterface.php:11
Magento\Framework\MessageQueue\Publisher\Config\CompositeValidator\__construct
__construct($validators)
Definition:
CompositeValidator.php:25
$configData
$configData
Definition:
payment_configuration.php:26
Magento\Framework\MessageQueue\Publisher\Config\CompositeValidator
Definition:
CompositeValidator.php:11
Magento\Framework\MessageQueue\Publisher\Config
Definition:
CompositeReader.php:6