File tree Expand file tree Collapse file tree 5 files changed +4
-7
lines changed Expand file tree Collapse file tree 5 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -176,11 +176,12 @@ public function __construct(
176
176
\Magento \Framework \Stdlib \DateTime \TimezoneInterface $ localeDate ,
177
177
\Magento \Framework \Translate \Inline \StateInterface $ inlineTranslation ,
178
178
\Magento \Sales \Model \Order \Address \Renderer $ addressRenderer ,
179
- TaxHelper $ taxHelper ,
180
179
array $ data = [],
181
180
Database $ fileStorageDatabase = null ,
182
181
?RtlTextHandler $ rtlTextHandler = null ,
183
- ?Image $ image = null
182
+ ?Image $ image = null ,
183
+ ?TaxHelper $ taxHelper = null
184
+
184
185
) {
185
186
$ this ->addressRenderer = $ addressRenderer ;
186
187
$ this ->_paymentData = $ paymentData ;
@@ -193,7 +194,7 @@ public function __construct(
193
194
$ this ->_pdfTotalFactory = $ pdfTotalFactory ;
194
195
$ this ->_pdfItemsFactory = $ pdfItemsFactory ;
195
196
$ this ->inlineTranslation = $ inlineTranslation ;
196
- $ this ->taxHelper = $ taxHelper ;
197
+ $ this ->taxHelper = $ taxHelper ?: ObjectManager:: getInstance ()-> get (TaxHelper::class) ;
197
198
$ this ->fileStorageDatabase = $ fileStorageDatabase ?: ObjectManager::getInstance ()->get (Database::class);
198
199
$ this ->rtlTextHandler = $ rtlTextHandler ?: ObjectManager::getInstance ()->get (RtlTextHandler::class);
199
200
$ this ->image = $ image ?: ObjectManager::getInstance ()->get (Image::class);
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ public function __construct(
77
77
$ localeDate ,
78
78
$ inlineTranslation ,
79
79
$ addressRenderer ,
80
- $ this ->taxHelper ,
81
80
$ data
82
81
);
83
82
}
Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ public function __construct(
73
73
$ localeDate ,
74
74
$ inlineTranslation ,
75
75
$ addressRenderer ,
76
- $ this ->taxHelper ,
77
76
$ data
78
77
);
79
78
}
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ public function __construct(
72
72
$ localeDate ,
73
73
$ inlineTranslation ,
74
74
$ addressRenderer ,
75
- $ this ->taxHelper ,
76
75
$ data
77
76
);
78
77
}
Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ public function __construct(
89
89
$ localeDate ,
90
90
$ inlineTranslation ,
91
91
$ addressRenderer ,
92
- $ this ->taxHelper ,
93
92
$ data
94
93
);
95
94
}
You can’t perform that action at this time.
0 commit comments