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
module-webapi
Controller
Rest
RequestProcessorPool.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Webapi\Controller\Rest
;
9
13
class
RequestProcessorPool
14
{
15
19
private
$requestProcessors;
20
26
public
function
__construct
($requestProcessors = [])
27
{
28
$this->requestProcessors = $requestProcessors;
29
}
30
37
public
function
getProcessor
(\
Magento
\Framework\Webapi\
Rest
\
Request
$request
)
38
{
39
foreach
($this->requestProcessors as
$processor
) {
40
if
(
$processor
->canProcess(
$request
)) {
41
return
$processor
;
42
}
43
}
44
45
throw
new \Magento\Framework\Webapi\Exception(
46
__
(
'Specified request cannot be processed.'
),
47
0,
48
\
Magento
\Framework\Webapi\Exception::HTTP_BAD_REQUEST
49
);
50
}
51
}
Magento\Webapi\Controller\Rest\RequestProcessorPool\__construct
__construct($requestProcessors=[])
Definition:
RequestProcessorPool.php:26
$processor
$processor
Definition:
404.php:10
__
__()
Definition:
__.php:13
Magento\Framework\Webapi\Request
Definition:
Request.php:18
Magento
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\Webapi\Controller\Rest
Definition:
Rest.php:31
Magento\Webapi\Controller\Rest
Definition:
SchemaRequestProcessorTest.php:7
Magento\Webapi\Controller\Rest\RequestProcessorPool\getProcessor
getProcessor(\Magento\Framework\Webapi\Rest\Request $request)
Definition:
RequestProcessorPool.php:37
Magento\Webapi\Controller\Rest\RequestProcessorPool
Definition:
RequestProcessorPool.php:13