File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
app/code/Magento/Sitemap/Model/ResourceModel/Catalog Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ public function __construct(
71
71
$ this ->_categoryResource = $ categoryResource ;
72
72
parent ::__construct ($ context , $ connectionName );
73
73
$ this ->metadataPool = $ metadataPool ;
74
- $ this ->categorySelectBuilder = $ selectWrapper ?? ObjectManager::getInstance ()->get (CategorySelectBuilder::class);
74
+ $ this ->categorySelectBuilder = $ selectWrapper ??
75
+ ObjectManager::getInstance ()->get (CategorySelectBuilder::class);
75
76
}
76
77
77
78
/**
Original file line number Diff line number Diff line change 23
23
24
24
class CategorySelectBuilder
25
25
{
26
+ /**
27
+ * @param ResourceConnection $resource
28
+ */
26
29
public function __construct (
27
30
private readonly ResourceConnection $ resource
28
31
) {
29
-
30
32
}
31
33
32
34
/**
Original file line number Diff line number Diff line change 19
19
*/
20
20
class Product extends \Magento \Framework \Model \ResourceModel \Db \AbstractDb
21
21
{
22
- const NOT_SELECTED_IMAGE = 'no_selection ' ;
22
+ public const NOT_SELECTED_IMAGE = 'no_selection ' ;
23
23
24
24
/**
25
25
* Collection Zend Db select
@@ -42,8 +42,6 @@ class Product extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
42
42
protected $ mediaGalleryReadHandler ;
43
43
44
44
/**
45
- * Sitemap data
46
- *
47
45
* @var \Magento\Sitemap\Helper\Data
48
46
*/
49
47
protected $ _sitemapData = null ;
@@ -77,6 +75,7 @@ class Product extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb
77
75
/**
78
76
* @var \Magento\Catalog\Model\Product\Media\Config
79
77
* @deprecated 100.2.0 unused
78
+ * @see getProductImageUrl
80
79
*/
81
80
protected $ _mediaConfig ;
82
81
@@ -137,7 +136,8 @@ public function __construct(
137
136
$ this ->_mediaConfig = $ mediaConfig ;
138
137
$ this ->_sitemapData = $ sitemapData ;
139
138
$ this ->imageUrlBuilder = $ urlBuilder ?? ObjectManager::getInstance ()->get (UrlBuilder::class);
140
- $ this ->productSelectBuilder = $ productSelectBuilder ?? ObjectManager::getInstance ()->get (ProductSelectBuilder::class);
139
+ $ this ->productSelectBuilder = $ productSelectBuilder ??
140
+ ObjectManager::getInstance ()->get (ProductSelectBuilder::class);
141
141
142
142
parent ::__construct ($ context , $ connectionName );
143
143
}
Original file line number Diff line number Diff line change 24
24
25
25
class ProductSelectBuilder
26
26
{
27
+ /**
28
+ * @param ResourceConnection $resource
29
+ */
27
30
public function __construct (
28
31
private readonly ResourceConnection $ resource
29
32
) {
30
-
31
33
}
32
34
33
35
/**
You can’t perform that action at this time.
0 commit comments