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-elasticsearch
Elasticsearch5
Model
Client
ClientFactoryProxy.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Elasticsearch\Elasticsearch5\Model\Client
;
7
8
use
Magento\AdvancedSearch\Model\Client\ClientFactoryInterface
;
9
use
Magento\AdvancedSearch\Model\Client\ClientResolver
;
10
14
class
ClientFactoryProxy
implements
ClientFactoryInterface
15
{
19
private
$clientResolver;
20
24
private
$clientFactories;
25
31
public
function
__construct
(
32
ClientResolver
$clientResolver,
33
array $clientFactories
34
) {
35
$this->clientResolver = $clientResolver;
36
$this->clientFactories = $clientFactories;
37
}
38
42
private
function
getClientFactory()
43
{
44
return
$this->clientFactories[$this->clientResolver->getCurrentEngine()];
45
}
46
50
public
function
create
(array
$options
= [])
51
{
52
return
$this->getClientFactory()->create(
$options
);
53
}
54
}
Magento\Elasticsearch\Elasticsearch5\Model\Client
Definition:
ClientFactoryProxy.php:6
Magento\Elasticsearch\Elasticsearch5\Model\Client\ClientFactoryProxy
Definition:
ClientFactoryProxy.php:14
Magento\AdvancedSearch\Model\Client\ClientFactoryInterface
Definition:
ClientFactoryInterface.php:12
Magento\AdvancedSearch\Model\Client\ClientResolver
Definition:
ClientResolver.php:15
Magento\Elasticsearch\Elasticsearch5\Model\Client\ClientFactoryProxy\create
create(array $options=[])
Definition:
ClientFactoryProxy.php:50
$options
$options
Definition:
multiple_mixed_products.php:29
Magento\Elasticsearch\Elasticsearch5\Model\Client\ClientFactoryProxy\__construct
__construct(ClientResolver $clientResolver, array $clientFactories)
Definition:
ClientFactoryProxy.php:31