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
Mview
Config
Data
Proxy.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Mview\Config\Data
;
7
11
class
Proxy
extends
\Magento\Framework\Mview\Config\Data implements
12
\Magento\Framework\ObjectManager\NoninterceptableInterface
13
{
19
protected
$objectManager
;
20
26
protected
$instanceName
;
27
33
protected
$subject
;
34
40
protected
$isShared
=
null
;
41
47
public
function
__construct
(
48
\
Magento
\Framework\
ObjectManagerInterface
$objectManager
,
49
$instanceName
= \
Magento
\Framework\Mview\
Config
\Data::class,
50
$shared =
true
51
) {
52
$this->objectManager =
$objectManager
;
53
$this->instanceName =
$instanceName
;
54
$this->isShared = $shared;
55
}
56
60
public
function
__sleep
()
61
{
62
return
[
'subject'
,
'isShared'
];
63
}
64
70
public
function
__wakeup
()
71
{
72
$this->objectManager =
\Magento\Framework\App\ObjectManager::getInstance
();
73
}
74
80
public
function
__clone
()
81
{
82
$this->subject = clone $this->
_getSubject
();
83
}
84
90
protected
function
_getSubject
()
91
{
92
if
(!$this->subject) {
93
$this->subject =
true
=== $this->isShared ? $this->objectManager->get(
94
$this->instanceName
95
) : $this->objectManager->create(
96
$this->instanceName
97
);
98
}
99
return
$this->subject
;
100
}
101
105
public
function
merge
(array
$config
)
106
{
107
$this->
_getSubject
()->merge($config);
108
}
109
113
public
function
get
(
$path
=
null
, $default =
null
)
114
{
115
return
$this->
_getSubject
()->get(
$path
, $default);
116
}
117
}
Magento\Framework\Mview\Config\Data\Proxy\$subject
$subject
Definition:
Proxy.php:33
Magento\Framework\App\ObjectManager\getInstance
static getInstance()
Definition:
ObjectManager.php:33
Magento\Framework\Mview\Config\Data\Proxy\merge
merge(array $config)
Definition:
Proxy.php:105
Magento\Framework\Mview\Config\Data\Proxy\__construct
__construct(\Magento\Framework\ObjectManagerInterface $objectManager, $instanceName=\Magento\Framework\Mview\Config\Data::class, $shared=true)
Definition:
Proxy.php:47
$config
$config
Definition:
fraud_order.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Mview\Config\Data\Proxy\_getSubject
_getSubject()
Definition:
Proxy.php:90
Magento\Framework\Mview\Config\Data\Proxy\$instanceName
$instanceName
Definition:
Proxy.php:26
Magento\Framework\Mview\Config\Data\Proxy\__sleep
__sleep()
Definition:
Proxy.php:60
Magento\Framework\ObjectManager\NoninterceptableInterface
Definition:
NoninterceptableInterface.php:11
Magento\Framework\Mview\Config\Data\Proxy\$isShared
$isShared
Definition:
Proxy.php:40
Magento\Framework\Mview\Config\Data\Proxy
Definition:
Proxy.php:11
Magento\Framework\Mview\Config\Data\Proxy\__wakeup
__wakeup()
Definition:
Proxy.php:70
Magento\Framework\Mview\Config\Data\Proxy\__clone
__clone()
Definition:
Proxy.php:80
Magento\Framework\Mview\Config
Definition:
Config.php:8
Magento
Magento\Framework\Mview\Config\Data\Proxy\$objectManager
$objectManager
Definition:
Proxy.php:19
Magento\Framework\Mview\Config\Data
Definition:
Proxy.php:6
$path
$path
Definition:
import_with_filesystem_images.php:14