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
App
Request
CompositeValidator.php
Go to the documentation of this file.
1
<?php
7
declare(strict_types=1);
8
9
namespace
Magento\Framework\App\Request
;
10
11
use
Magento\Framework\App\ActionInterface
;
12
use
Magento\Framework\App\RequestInterface
;
13
17
class
CompositeValidator
implements
ValidatorInterface
18
{
22
private
$validators;
23
27
public
function
__construct
(array $validators)
28
{
29
$this->validators = $validators;
30
}
31
35
public
function
validate
(
36
RequestInterface
$request
,
37
ActionInterface
$action
38
): void {
39
foreach
($this->validators as $validator) {
40
$validator->validate(
$request
, $action);
41
}
42
}
43
}
Magento\Framework\App\Request\CompositeValidator\__construct
__construct(array $validators)
Definition:
CompositeValidator.php:27
Magento\Framework\App\Request\CompositeValidator
Definition:
CompositeValidator.php:17
Magento\Framework\App\RequestInterface
Definition:
RequestInterface.php:14
Magento\Framework\App\ActionInterface
Definition:
ActionInterface.php:14
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\Framework\App\Request\CompositeValidator\validate
validate(RequestInterface $request, ActionInterface $action)
Definition:
CompositeValidator.php:35
Magento\Framework\App\Request
Definition:
CompositeValidator.php:9
Magento\Framework\App\Request\ValidatorInterface
Definition:
ValidatorInterface.php:17