File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
app/code/Magento/Config/App/Config/Type Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,7 @@ public function __construct(
123
123
public function get ($ path = '' )
124
124
{
125
125
if ($ path === '' ) {
126
- $ this ->data = array_replace_recursive ($ this ->data , $ allData = $ this ->loadAllData ());
127
- $ allData = $ this ->postProcessor ->process ($ allData );
128
- $ this ->data = array_replace_recursive ($ this ->data , $ allData );
126
+ $ this ->data = array_replace_recursive ($ this ->data , $ this ->loadAllData ());
129
127
130
128
return $ this ->data ;
131
129
}
@@ -146,7 +144,7 @@ private function getWithParts($path)
146
144
if (count ($ pathParts ) === 1 && $ pathParts [0 ] !== ScopeInterface::SCOPE_DEFAULT ) {
147
145
if (!isset ($ this ->data [$ pathParts [0 ]])) {
148
146
$ data = $ this ->readData ();
149
- $ this ->data = $ this ->postProcessor ->process ($ data );
147
+ $ this ->data = array_replace_recursive ( $ this ->data , $ this -> postProcessor ->process ($ data) );
150
148
}
151
149
152
150
return $ this ->data [$ pathParts [0 ]];
@@ -194,9 +192,10 @@ private function loadAllData()
194
192
$ data = $ this ->readData ();
195
193
} else {
196
194
$ data = $ this ->serializer ->unserialize ($ cachedData );
195
+ $ this ->data = $ data ;
197
196
}
198
197
199
- return $ data ;
198
+ return $ this -> postProcessor -> process ( $ data) ;
200
199
}
201
200
202
201
/**
You can’t perform that action at this time.
0 commit comments