File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed
app/code/Magento/Catalog/Block/Product
lib/internal/Magento/Framework/Data/Helper Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ class ListProduct extends AbstractProduct implements IdentityInterface
60
60
* @param \Magento\Framework\Data\Helper\PostHelper $postDataHelper
61
61
* @param \Magento\Catalog\Model\Layer\Resolver $layerResolver
62
62
* @param CategoryRepositoryInterface $categoryRepository
63
+ * @param \Magento\Framework\Url\Helper\Data $urlHelper
63
64
* @param array $data
64
65
*/
65
66
public function __construct (
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class Promotion extends \Magento\Catalog\Block\Product\ListProduct
28
28
* @param \Magento\Framework\Data\Helper\PostHelper $postDataHelper
29
29
* @param \Magento\Catalog\Model\Layer\Resolver $layerResolver
30
30
* @param CategoryRepositoryInterface $categoryRepository
31
+ * @param \Magento\Framework\Url\Helper\Data $urlHelper
31
32
* @param CollectionFactory $productCollectionFactory
32
33
* @param array $data
33
34
*/
@@ -36,6 +37,7 @@ public function __construct(
36
37
\Magento \Framework \Data \Helper \PostHelper $ postDataHelper ,
37
38
\Magento \Catalog \Model \Layer \Resolver $ layerResolver ,
38
39
CategoryRepositoryInterface $ categoryRepository ,
40
+ \Magento \Framework \Url \Helper \Data $ urlHelper ,
39
41
CollectionFactory $ productCollectionFactory ,
40
42
array $ data = []
41
43
) {
@@ -45,6 +47,7 @@ public function __construct(
45
47
$ postDataHelper ,
46
48
$ layerResolver ,
47
49
$ categoryRepository ,
50
+ $ urlHelper ,
48
51
$ data
49
52
);
50
53
}
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class Random extends \Magento\Catalog\Block\Product\ListProduct
31
31
* @param \Magento\Framework\Data\Helper\PostHelper $postDataHelper
32
32
* @param \Magento\Catalog\Model\Layer\Resolver $layerResolver
33
33
* @param CategoryRepositoryInterface $categoryRepository
34
+ * @param \Magento\Framework\Url\Helper\Data $urlHelper
34
35
* @param \Magento\Catalog\Model\Resource\Product\CollectionFactory $productCollectionFactory
35
36
* @param array $data
36
37
*/
@@ -39,6 +40,7 @@ public function __construct(
39
40
\Magento \Framework \Data \Helper \PostHelper $ postDataHelper ,
40
41
\Magento \Catalog \Model \Layer \Resolver $ layerResolver ,
41
42
CategoryRepositoryInterface $ categoryRepository ,
43
+ \Magento \Framework \Url \Helper \Data $ urlHelper ,
42
44
\Magento \Catalog \Model \Resource \Product \CollectionFactory $ productCollectionFactory ,
43
45
array $ data = []
44
46
) {
@@ -48,6 +50,7 @@ public function __construct(
48
50
$ postDataHelper ,
49
51
$ layerResolver ,
50
52
$ categoryRepository ,
53
+ $ urlHelper ,
51
54
$ data
52
55
);
53
56
}
Original file line number Diff line number Diff line change @@ -19,10 +19,15 @@ class PostHelper extends \Magento\Framework\App\Helper\AbstractHelper
19
19
*/
20
20
private $ urlHelper ;
21
21
22
+ /**
23
+ * @param Context $context
24
+ * @param UrlHelper $urlHelper
25
+ */
22
26
public function __construct (
23
27
Context $ context ,
24
28
UrlHelper $ urlHelper
25
29
) {
30
+ parent ::__construct ($ context );
26
31
$ this ->urlHelper = $ urlHelper ;
27
32
}
28
33
You can’t perform that action at this time.
0 commit comments