Skip to content

Commit 84ccd7f

Browse files
committed
Remove default values from property, as they are injected via DI
1 parent 095c434 commit 84ccd7f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/LinkProcessor.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,10 @@
2121
class LinkProcessor
2222
{
2323
/**
24-
* Links attribute name-to-link type ID.
25-
* TODO: inject via DI
2624
* @var array
2725
*/
28-
protected $_linkNameToId = [
29-
'_related_' => \Magento\Catalog\Model\Product\Link::LINK_TYPE_RELATED,
30-
'_crosssell_' => \Magento\Catalog\Model\Product\Link::LINK_TYPE_CROSSSELL,
31-
'_upsell_' => \Magento\Catalog\Model\Product\Link::LINK_TYPE_UPSELL,
32-
];
26+
private $_linkNameToId;
27+
3328
/**
3429
* @var array
3530
*/

0 commit comments

Comments
 (0)