Skip to content

Commit 6be0c2b

Browse files
committed
ACPT-1263: Fix Catalog failures
1 parent b2903a5 commit 6be0c2b

File tree

4 files changed

+24
-13
lines changed

4 files changed

+24
-13
lines changed

app/code/Magento/Catalog/Model/Layer/Resolver.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99

1010
namespace Magento\Catalog\Model\Layer;
1111

12+
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
13+
1214
/**
1315
* Layer Resolver
1416
*
1517
* @api
1618
*/
17-
class Resolver
19+
class Resolver implements ResetAfterRequestInterface
1820
{
1921
const CATALOG_LAYER_CATEGORY = 'category';
2022
const CATALOG_LAYER_SEARCH = 'search';
@@ -79,4 +81,12 @@ public function get()
7981
}
8082
return $this->layer;
8183
}
84+
85+
/**
86+
* @inheritDoc
87+
*/
88+
public function _resetState(): void
89+
{
90+
$this->layer = null;
91+
}
8292
}

dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogGraphQl/PriceAttributeOptionsLabelTranslateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,6 @@ public function testValidateAggregateAttributeOptionsInLabelLocaleTranslationFor
201201
}
202202
}
203203

204-
$this->assertEquals($priceAttributeOptionLabel, 'Preisansicht');
204+
$this->assertEquals( 'Preisansicht', $priceAttributeOptionLabel);
205205
}
206206
}

lib/internal/Magento/Framework/App/Area.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
namespace Magento\Framework\App;
1010

1111
use Magento\Framework\ObjectManager\ConfigLoaderInterface;
12-
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
1312

1413
/**
1514
* Application area model
1615
*
1716
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1817
* @api
1918
*/
20-
class Area implements \Magento\Framework\App\AreaInterface, ResetAfterRequestInterface
19+
class Area implements \Magento\Framework\App\AreaInterface
2120
{
2221
public const AREA_GLOBAL = 'global';
2322
public const AREA_FRONTEND = 'frontend';
@@ -261,12 +260,4 @@ protected function _initDesign()
261260
$this->_getDesign()->setArea($this->_code)->setDefaultDesignTheme();
262261
return $this;
263262
}
264-
265-
/**
266-
* @inheritDoc
267-
*/
268-
public function _resetState(): void
269-
{
270-
$this->_loadedParts = [];
271-
}
272263
}

lib/internal/Magento/Framework/App/AreaList.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
*/
66
namespace Magento\Framework\App;
77

8+
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
9+
810
/**
911
* Lists router area codes & processes resolves FrontEndNames to area codes
1012
*
1113
* @api
1214
*/
13-
class AreaList
15+
class AreaList implements ResetAfterRequestInterface
1416
{
1517
/**
1618
* @var array
@@ -127,4 +129,12 @@ public function getArea($code)
127129
}
128130
return $this->_areaInstances[$code];
129131
}
132+
133+
/**
134+
* @inheritDoc
135+
*/
136+
public function _resetState(): void
137+
{
138+
$this->_areaInstances = [];
139+
}
130140
}

0 commit comments

Comments
 (0)