Skip to content

Commit e858b69

Browse files
author
Sergii Kovalenko
committed
MAGETWO-60832: UI Upgrade Fails from CE 2.1.1 to EE 2.1.3
1 parent 7186af8 commit e858b69

File tree

3 files changed

+2
-128
lines changed

3 files changed

+2
-128
lines changed

app/code/Magento/Store/App/Config/Type/Scopes.php

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77

88
use Magento\Framework\App\Config\ConfigTypeInterface;
99
use Magento\Framework\App\Config\ConfigSourceInterface;
10-
use Magento\Framework\Cache\FrontendInterface;
1110
use Magento\Framework\DataObject;
12-
use Magento\Store\Model\Group;
13-
use Magento\Store\Model\Store;
14-
use Magento\Store\Model\Website;
1511

1612
/**
1713
* Merge and hold scopes data from different sources
@@ -32,30 +28,14 @@ class Scopes implements ConfigTypeInterface
3228
*/
3329
private $data;
3430

35-
/**
36-
* @var FrontendInterface
37-
*/
38-
private $cache;
39-
40-
/**
41-
* @var int
42-
*/
43-
private $cachingNestedLevel;
44-
4531
/**
4632
* System constructor.
4733
* @param ConfigSourceInterface $source
48-
* @param FrontendInterface $cache
49-
* @param int $cachingNestedLevel
5034
*/
5135
public function __construct(
52-
ConfigSourceInterface $source,
53-
FrontendInterface $cache,
54-
$cachingNestedLevel = 1
36+
ConfigSourceInterface $source
5537
) {
5638
$this->source = $source;
57-
$this->cache = $cache;
58-
$this->cachingNestedLevel = $cachingNestedLevel;
5939
}
6040

6141
/**
@@ -64,18 +44,7 @@ public function __construct(
6444
public function get($path = '')
6545
{
6646
if (!$this->data) {
67-
/** @var DataObject $data */
68-
$data = $this->cache->load(self::CONFIG_TYPE);
69-
if (!$data) {
70-
$this->data = new DataObject($this->source->get());
71-
$this->cache->save(
72-
serialize($this->data),
73-
self::CONFIG_TYPE,
74-
[Group::CACHE_TAG, Store::CACHE_TAG, Website::CACHE_TAG]
75-
);
76-
} else {
77-
$this->data = unserialize($data);
78-
}
47+
$this->data = new DataObject($this->source->get());
7948
}
8049

8150
return $this->data->getData($path);
@@ -89,9 +58,5 @@ public function get($path = '')
8958
public function clean()
9059
{
9160
$this->data = null;
92-
$this->cache->clean(
93-
\Zend_Cache::CLEANING_MODE_MATCHING_TAG,
94-
[Group::CACHE_TAG, Store::CACHE_TAG, Website::CACHE_TAG]
95-
);
9661
}
9762
}

app/code/Magento/Store/Test/Unit/App/Config/Type/ScopesTest.php

Lines changed: 0 additions & 90 deletions
This file was deleted.

app/code/Magento/Store/etc/di.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@
399399
<type name="Magento\Store\App\Config\Type\Scopes">
400400
<arguments>
401401
<argument name="source" xsi:type="object">scopesConfigSourceAggregatedProxy</argument>
402-
<argument name="cache" xsi:type="object">Magento\Framework\App\Cache\Type\Config</argument>
403402
</arguments>
404403
</type>
405404
<virtualType name="scopesConfigSourceAggregatedProxy" type="Magento\Framework\App\Config\ConfigSourceAggregated\Proxy">

0 commit comments

Comments
 (0)