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
GraphQl
Query
Resolver
Argument
SearchCriteria
ArgumentApplierFactory.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria
;
9
10
use
Magento\Framework\ObjectManagerInterface
;
11
15
class
ArgumentApplierFactory
16
{
20
private
$objectManager;
21
25
public
function
__construct
(
26
ObjectManagerInterface
$objectManager
27
) {
28
$this->objectManager =
$objectManager
;
29
}
30
38
public
function
create
(
string
$argumentName) :
ArgumentApplierInterface
39
{
40
$appliers = [
41
ArgumentApplier\Filter::ARGUMENT_NAME
=> ArgumentApplier\Filter::class,
42
ArgumentApplier\Sort::ARGUMENT_NAME
=> ArgumentApplier\Sort::class
43
];
44
if
(isset($appliers[$argumentName])) {
45
return
$this->objectManager->create($appliers[$argumentName]);
46
}
else
{
47
throw
new \LogicException(sprintf(
'Applier %s not found'
, $argumentName));
48
}
49
}
50
}
Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria\ArgumentApplierFactory\create
create(string $argumentName)
Definition:
ArgumentApplierFactory.php:38
Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria\ArgumentApplierFactory\__construct
__construct(ObjectManagerInterface $objectManager)
Definition:
ArgumentApplierFactory.php:25
Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria\ArgumentApplier\Sort\ARGUMENT_NAME
const ARGUMENT_NAME
Definition:
Sort.php:21
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria\ArgumentApplier\Filter\ARGUMENT_NAME
const ARGUMENT_NAME
Definition:
Filter.php:21
Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria\ArgumentApplierInterface
Definition:
ArgumentApplierInterface.php:15
Magento\Framework\GraphQl\Query\Resolver\Argument\SearchCriteria\ArgumentApplierFactory
Definition:
ArgumentApplierFactory.php:15