We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1002763 commit 48274e1Copy full SHA for 48274e1
app/code/Magento/ProductAlert/Block/Product/ImageProvider.php
@@ -56,17 +56,11 @@ public function __construct(
56
*/
57
public function getImage(Product $product, $imageId, $attributes = [])
58
{
59
- $storeId = $this->storeManager->getStore()->getId();
60
- $this->appEmulation->startEnvironmentEmulation($storeId, Area::AREA_FRONTEND, true);
61
-
62
try {
63
$image = $this->imageBuilder->create($product, $imageId, $attributes);
64
} catch (\Exception $exception) {
65
- $this->appEmulation->stopEnvironmentEmulation();
66
throw $exception;
67
}
68
69
70
return $image;
71
72
0 commit comments