6
6
namespace Magento \Weee \Model \Attribute \Backend \Weee ;
7
7
8
8
use Magento \Framework \Exception \LocalizedException ;
9
+ use Magento \Catalog \Model \Attribute \ScopeOverriddenValue ;
9
10
10
11
class Tax extends \Magento \Catalog \Model \Product \Attribute \Backend \Price
11
12
{
@@ -25,13 +26,16 @@ class Tax extends \Magento\Catalog\Model\Product\Attribute\Backend\Price
25
26
protected $ _directoryHelper ;
26
27
27
28
/**
29
+ * Initialize dependencies.
30
+ *
28
31
* @param \Magento\Directory\Model\CurrencyFactory $currencyFactory
29
32
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
30
33
* @param \Magento\Catalog\Helper\Data $catalogData
31
34
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config
32
35
* @param \Magento\Framework\Locale\FormatInterface $localeFormat
33
36
* @param \Magento\Directory\Helper\Data $directoryHelper
34
37
* @param \Magento\Weee\Model\ResourceModel\Attribute\Backend\Weee\Tax $attributeTax
38
+ * @param ScopeOverriddenValue|null $scopeOverriddenValue
35
39
*/
36
40
public function __construct (
37
41
\Magento \Directory \Model \CurrencyFactory $ currencyFactory ,
@@ -40,12 +44,20 @@ public function __construct(
40
44
\Magento \Framework \App \Config \ScopeConfigInterface $ config ,
41
45
\Magento \Framework \Locale \FormatInterface $ localeFormat ,
42
46
\Magento \Directory \Helper \Data $ directoryHelper ,
43
- \Magento \Weee \Model \ResourceModel \Attribute \Backend \Weee \Tax $ attributeTax
47
+ \Magento \Weee \Model \ResourceModel \Attribute \Backend \Weee \Tax $ attributeTax ,
48
+ ScopeOverriddenValue $ scopeOverriddenValue = null
44
49
) {
45
50
$ this ->_directoryHelper = $ directoryHelper ;
46
51
$ this ->_storeManager = $ storeManager ;
47
52
$ this ->_attributeTax = $ attributeTax ;
48
- parent ::__construct ($ currencyFactory , $ storeManager , $ catalogData , $ config , $ localeFormat );
53
+ parent ::__construct (
54
+ $ currencyFactory ,
55
+ $ storeManager ,
56
+ $ catalogData ,
57
+ $ config ,
58
+ $ localeFormat ,
59
+ $ scopeOverriddenValue
60
+ );
49
61
}
50
62
51
63
/**
0 commit comments