File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/code/Magento/MediaGalleryRenditions/Plugin Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 77
88namespace Magento \MediaGalleryRenditions \Plugin ;
99
10+ use Magento \Catalog \Helper \Data as CatalogHelper ;
1011use Magento \Framework \App \Filesystem \DirectoryList ;
1112use Magento \Framework \Filesystem ;
1213use Magento \MediaGalleryApi \Api \DeleteAssetsByPathsInterface ;
1819 */
1920class RemoveRenditions
2021{
22+ /**
23+ * @var CatalogHelper
24+ */
25+ private $ catalogHelper ;
26+
2127 /**
2228 * @var GetRenditionPathInterface
2329 */
@@ -39,10 +45,12 @@ class RemoveRenditions
3945 * @param LoggerInterface $log
4046 */
4147 public function __construct (
48+ CatalogHelper $ catalogHelper ,
4249 GetRenditionPathInterface $ getRenditionPath ,
4350 Filesystem $ filesystem ,
4451 LoggerInterface $ log
4552 ) {
53+ $ this ->catalogHelper = $ catalogHelper ;
4654 $ this ->getRenditionPath = $ getRenditionPath ;
4755 $ this ->filesystem = $ filesystem ;
4856 $ this ->log = $ log ;
@@ -52,7 +60,7 @@ public function __construct(
5260 * Remove renditions when assets are removed
5361 *
5462 * @param DeleteAssetsByPathsInterface $deleteAssetsByPaths
55- * @param null $result
63+ * @param void $result
5664 * @param array $paths
5765 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
5866 */
You can’t perform that action at this time.
0 commit comments