File tree Expand file tree Collapse file tree 4 files changed +24
-13
lines changed
app/code/Magento/Catalog/Model/Layer
dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogGraphQl
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 4 files changed +24
-13
lines changed Original file line number Diff line number Diff line change 9
9
10
10
namespace Magento \Catalog \Model \Layer ;
11
11
12
+ use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
13
+
12
14
/**
13
15
* Layer Resolver
14
16
*
15
17
* @api
16
18
*/
17
- class Resolver
19
+ class Resolver implements ResetAfterRequestInterface
18
20
{
19
21
const CATALOG_LAYER_CATEGORY = 'category ' ;
20
22
const CATALOG_LAYER_SEARCH = 'search ' ;
@@ -79,4 +81,12 @@ public function get()
79
81
}
80
82
return $ this ->layer ;
81
83
}
84
+
85
+ /**
86
+ * @inheritDoc
87
+ */
88
+ public function _resetState (): void
89
+ {
90
+ $ this ->layer = null ;
91
+ }
82
92
}
Original file line number Diff line number Diff line change @@ -201,6 +201,6 @@ public function testValidateAggregateAttributeOptionsInLabelLocaleTranslationFor
201
201
}
202
202
}
203
203
204
- $ this ->assertEquals ($ priceAttributeOptionLabel , 'Preisansicht ' );
204
+ $ this ->assertEquals ( 'Preisansicht ' , $ priceAttributeOptionLabel );
205
205
}
206
206
}
Original file line number Diff line number Diff line change 9
9
namespace Magento \Framework \App ;
10
10
11
11
use Magento \Framework \ObjectManager \ConfigLoaderInterface ;
12
- use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
13
12
14
13
/**
15
14
* Application area model
16
15
*
17
16
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
18
17
* @api
19
18
*/
20
- class Area implements \Magento \Framework \App \AreaInterface, ResetAfterRequestInterface
19
+ class Area implements \Magento \Framework \App \AreaInterface
21
20
{
22
21
public const AREA_GLOBAL = 'global ' ;
23
22
public const AREA_FRONTEND = 'frontend ' ;
@@ -261,12 +260,4 @@ protected function _initDesign()
261
260
$ this ->_getDesign ()->setArea ($ this ->_code )->setDefaultDesignTheme ();
262
261
return $ this ;
263
262
}
264
-
265
- /**
266
- * @inheritDoc
267
- */
268
- public function _resetState (): void
269
- {
270
- $ this ->_loadedParts = [];
271
- }
272
263
}
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \App ;
7
7
8
+ use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
9
+
8
10
/**
9
11
* Lists router area codes & processes resolves FrontEndNames to area codes
10
12
*
11
13
* @api
12
14
*/
13
- class AreaList
15
+ class AreaList implements ResetAfterRequestInterface
14
16
{
15
17
/**
16
18
* @var array
@@ -127,4 +129,12 @@ public function getArea($code)
127
129
}
128
130
return $ this ->_areaInstances [$ code ];
129
131
}
132
+
133
+ /**
134
+ * @inheritDoc
135
+ */
136
+ public function _resetState (): void
137
+ {
138
+ $ this ->_areaInstances = [];
139
+ }
130
140
}
You can’t perform that action at this time.
0 commit comments