File tree 1 file changed +9
-1
lines changed
app/code/Magento/MediaGalleryRenditions/Plugin 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \MediaGalleryRenditions \Plugin ;
9
9
10
+ use Magento \Catalog \Helper \Data as CatalogHelper ;
10
11
use Magento \Framework \App \Filesystem \DirectoryList ;
11
12
use Magento \Framework \Filesystem ;
12
13
use Magento \MediaGalleryApi \Api \DeleteAssetsByPathsInterface ;
18
19
*/
19
20
class RemoveRenditions
20
21
{
22
+ /**
23
+ * @var CatalogHelper
24
+ */
25
+ private $ catalogHelper ;
26
+
21
27
/**
22
28
* @var GetRenditionPathInterface
23
29
*/
@@ -39,10 +45,12 @@ class RemoveRenditions
39
45
* @param LoggerInterface $log
40
46
*/
41
47
public function __construct (
48
+ CatalogHelper $ catalogHelper ,
42
49
GetRenditionPathInterface $ getRenditionPath ,
43
50
Filesystem $ filesystem ,
44
51
LoggerInterface $ log
45
52
) {
53
+ $ this ->catalogHelper = $ catalogHelper ;
46
54
$ this ->getRenditionPath = $ getRenditionPath ;
47
55
$ this ->filesystem = $ filesystem ;
48
56
$ this ->log = $ log ;
@@ -52,7 +60,7 @@ public function __construct(
52
60
* Remove renditions when assets are removed
53
61
*
54
62
* @param DeleteAssetsByPathsInterface $deleteAssetsByPaths
55
- * @param null $result
63
+ * @param void $result
56
64
* @param array $paths
57
65
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
58
66
*/
You can’t perform that action at this time.
0 commit comments