File tree Expand file tree Collapse file tree 3 files changed +12
-21
lines changed
Eav/Model/ResourceModel/Entity Expand file tree Collapse file tree 3 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -209,24 +209,6 @@ protected function _beforeSave(AbstractModel $object)
209
209
return parent ::_beforeSave ($ object );
210
210
}
211
211
212
- /**
213
- * @inheritDoc
214
- */
215
- public function save (\Magento \Framework \Model \AbstractModel $ object )
216
- {
217
- $ this ->pillPut ->put ();
218
- return parent ::save ($ object );
219
- }
220
-
221
- /**
222
- * @inheritDoc
223
- */
224
- public function delete (\Magento \Framework \Model \AbstractModel $ object )
225
- {
226
- $ this ->pillPut ->put ();
227
- return parent ::delete ($ object );
228
- }
229
-
230
212
/**
231
213
* @inheritdoc
232
214
*
@@ -263,6 +245,7 @@ protected function _afterSave(AbstractModel $object)
263
245
$ object
264
246
);
265
247
$ this ->getConfig ()->clear ();
248
+ $ this ->pillPut ->put ();
266
249
return parent ::_afterSave ($ object );
267
250
}
268
251
@@ -277,6 +260,7 @@ protected function _afterSave(AbstractModel $object)
277
260
protected function _afterDelete (AbstractModel $ object )
278
261
{
279
262
$ this ->getConfig ()->clear ();
263
+ $ this ->pillPut ->put ();
280
264
return $ this ;
281
265
}
282
266
Original file line number Diff line number Diff line change 42
42
use Magento \Sales \Api \Data \OrderInterface ;
43
43
use Magento \Sales \Api \Data \OrderInterfaceFactory as OrderFactory ;
44
44
use Magento \Sales \Api \OrderManagementInterface as OrderManagement ;
45
- use Magento \Store \Model \StoreManager ;
46
45
use Magento \Store \Model \StoreManagerInterface ;
47
46
48
47
/**
@@ -783,6 +782,5 @@ private function rollbackAddresses(
783
782
public function _resetState (): void
784
783
{
785
784
$ this ->addressesToSync = [];
786
- $ this ->storeManager = ObjectManager::getInstance ()->get (StoreManager::class);
787
785
}
788
786
}
Original file line number Diff line number Diff line change 18
18
*/
19
19
class StoreManager implements
20
20
\Magento \Store \Model \StoreManagerInterface,
21
- \Magento \Store \Api \StoreWebsiteRelationInterface
21
+ \Magento \Store \Api \StoreWebsiteRelationInterface,
22
+ ResetAfterRequestInterface
22
23
{
23
24
/**
24
25
* Application run code
@@ -329,4 +330,12 @@ public function __debugInfo()
329
330
{
330
331
return ['currentStoreId ' => $ this ->currentStoreId ];
331
332
}
333
+
334
+ /**
335
+ * @inheritDoc
336
+ */
337
+ public function _resetState (): void
338
+ {
339
+ $ this ->reinitStores ();
340
+ }
332
341
}
You can’t perform that action at this time.
0 commit comments