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-advanced-search
Model
Client
ClientFactory.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\AdvancedSearch\Model\Client
;
7
8
use
Magento\Framework\ObjectManagerInterface
;
9
10
class
ClientFactory
implements
ClientFactoryInterface
11
{
17
protected
$objectManager
;
18
22
private
$clientClass;
23
28
public
function
__construct
(
ObjectManagerInterface
$objectManager
, $clientClass)
29
{
30
$this->objectManager =
$objectManager
;
31
$this->clientClass = $clientClass;
32
}
33
40
public
function
create
(array
$options
= [])
41
{
42
return
$this->objectManager->create(
43
$this->clientClass,
44
[
'options'
=>
$options
]
45
);
46
}
47
}
Magento\AdvancedSearch\Model\Client\ClientFactory\$objectManager
$objectManager
Definition:
ClientFactory.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\AdvancedSearch\Model\Client\ClientFactoryInterface
Definition:
ClientFactoryInterface.php:12
Magento\AdvancedSearch\Model\Client\ClientFactory\__construct
__construct(ObjectManagerInterface $objectManager, $clientClass)
Definition:
ClientFactory.php:28
Magento\AdvancedSearch\Model\Client\ClientFactory\create
create(array $options=[])
Definition:
ClientFactory.php:40
Magento\AdvancedSearch\Model\Client
Definition:
ClientFactory.php:6
Magento\AdvancedSearch\Model\Client\ClientFactory
Definition:
ClientFactory.php:10
$options
$options
Definition:
multiple_mixed_products.php:29