File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
app/code/Magento/ProductAlert/Block/Email Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,6 @@ abstract class AbstractEmail extends \Magento\Framework\View\Element\Template
51
51
*/
52
52
private $ appEmulation ;
53
53
54
- /**
55
- * @var \Magento\Store\Model\StoreManagerInterface
56
- */
57
- private $ storeManager ;
58
-
59
54
/**
60
55
* @param \Magento\Framework\View\Element\Template\Context $context
61
56
* @param \Magento\Framework\Filter\Input\MaliciousCode $maliciousCode
@@ -75,7 +70,6 @@ public function __construct(
75
70
$ this ->imageBuilder = $ imageBuilder ;
76
71
$ this ->priceCurrency = $ priceCurrency ;
77
72
$ this ->_maliciousCode = $ maliciousCode ;
78
- $ this ->storeManager = $ context ->getStoreManager ();
79
73
$ this ->appEmulation = $ appEmulation
80
74
?: \Magento \Framework \App \ObjectManager::getInstance ()->get (\Magento \Store \Model \App \Emulation::class);
81
75
@@ -239,7 +233,7 @@ public function getProductPriceHtml(
239
233
public function getImage ($ product , $ imageId , $ attributes = [])
240
234
{
241
235
$ this ->appEmulation ->startEnvironmentEmulation (
242
- $ this ->storeManager ->getStore ()->getId (),
236
+ $ this ->_storeManager ->getStore ()->getId (),
243
237
\Magento \Framework \App \Area::AREA_FRONTEND ,
244
238
true
245
239
);
You can’t perform that action at this time.
0 commit comments