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
HTTP
ClientFactory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\HTTP
;
8
14
class
ClientFactory
15
{
21
protected
$_objectManager
=
null
;
22
28
protected
$_instanceName
=
null
;
29
36
public
function
__construct
(
37
\
Magento
\Framework\
ObjectManagerInterface
$objectManager
,
38
$instanceName = \
Magento
\Framework\HTTP\Client\Curl::class
39
) {
40
$this->_objectManager =
$objectManager
;
41
$this->_instanceName = $instanceName;
42
}
43
50
public
function
create
(array
$data
= [])
51
{
52
return
$this->_objectManager->create($this->_instanceName,
$data
);
53
}
54
}
Magento\Framework\HTTP\ClientFactory\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\HTTP\Client\Curl::class)
Definition:
ClientFactory.php:36
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\HTTP\ClientFactory\$_objectManager
$_objectManager
Definition:
ClientFactory.php:21
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\HTTP\ClientFactory\create
create(array $data=[])
Definition:
ClientFactory.php:50
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\HTTP\ClientFactory
Definition:
ClientFactory.php:14
Magento
Magento\Framework\HTTP\ClientFactory\$_instanceName
$_instanceName
Definition:
ClientFactory.php:28
Magento\Framework\HTTP