File tree Expand file tree Collapse file tree 5 files changed +27
-15
lines changed
app/code/Magento/Catalog/Model/Layer
dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogGraphQl
lib/internal/Magento/Framework Expand file tree Collapse file tree 5 files changed +27
-15
lines changed Original file line number Diff line number Diff line change 99
1010namespace 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{
19- const CATALOG_LAYER_CATEGORY = 'category ' ;
20- const CATALOG_LAYER_SEARCH = 'search ' ;
21+ public const CATALOG_LAYER_CATEGORY = 'category ' ;
22+ public const CATALOG_LAYER_SEARCH = 'search ' ;
2123
2224 /**
2325 * Catalog view layer models list
@@ -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}
Original file line number Diff line number Diff line change @@ -201,6 +201,6 @@ public function testValidateAggregateAttributeOptionsInLabelLocaleTranslationFor
201201 }
202202 }
203203
204- $ this ->assertEquals ($ priceAttributeOptionLabel , 'Preisansicht ' );
204+ $ this ->assertEquals ('Preisansicht ' , $ priceAttributeOptionLabel );
205205 }
206206}
Original file line number Diff line number Diff line change 99namespace Magento \Framework \App ;
1010
1111use 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}
Original file line number Diff line number Diff line change 55 */
66namespace 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}
Original file line number Diff line number Diff line change @@ -609,5 +609,6 @@ public function _resetState(): void
609609 {
610610 $ this ->_config = [];
611611 $ this ->_data = [];
612+ $ this ->_localeCode = null ;
612613 }
613614}
You can’t perform that action at this time.
0 commit comments