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(
176176 \Magento \Framework \Stdlib \DateTime \TimezoneInterface $ localeDate ,
177177 \Magento \Framework \Translate \Inline \StateInterface $ inlineTranslation ,
178178 \Magento \Sales \Model \Order \Address \Renderer $ addressRenderer ,
179- TaxHelper $ taxHelper ,
180179 array $ data = [],
181180 Database $ fileStorageDatabase = null ,
182181 ?RtlTextHandler $ rtlTextHandler = null ,
183- ?Image $ image = null
182+ ?Image $ image = null ,
183+ ?TaxHelper $ taxHelper = null
184+
184185 ) {
185186 $ this ->addressRenderer = $ addressRenderer ;
186187 $ this ->_paymentData = $ paymentData ;
@@ -193,7 +194,7 @@ public function __construct(
193194 $ this ->_pdfTotalFactory = $ pdfTotalFactory ;
194195 $ this ->_pdfItemsFactory = $ pdfItemsFactory ;
195196 $ this ->inlineTranslation = $ inlineTranslation ;
196- $ this ->taxHelper = $ taxHelper ;
197+ $ this ->taxHelper = $ taxHelper ?: ObjectManager:: getInstance ()-> get (TaxHelper::class) ;
197198 $ this ->fileStorageDatabase = $ fileStorageDatabase ?: ObjectManager::getInstance ()->get (Database::class);
198199 $ this ->rtlTextHandler = $ rtlTextHandler ?: ObjectManager::getInstance ()->get (RtlTextHandler::class);
199200 $ 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(
7777 $ localeDate ,
7878 $ inlineTranslation ,
7979 $ addressRenderer ,
80- $ this ->taxHelper ,
8180 $ data
8281 );
8382 }
Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ public function __construct(
7373 $ localeDate ,
7474 $ inlineTranslation ,
7575 $ addressRenderer ,
76- $ this ->taxHelper ,
7776 $ data
7877 );
7978 }
Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ public function __construct(
7272 $ localeDate ,
7373 $ inlineTranslation ,
7474 $ addressRenderer ,
75- $ this ->taxHelper ,
7675 $ data
7776 );
7877 }
Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ public function __construct(
8989 $ localeDate ,
9090 $ inlineTranslation ,
9191 $ addressRenderer ,
92- $ this ->taxHelper ,
9392 $ data
9493 );
9594 }
You can’t perform that action at this time.
0 commit comments