File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
app/code/Magento/Sales/Model Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -312,29 +312,11 @@ private function setShippingAssignments(OrderInterface $order)
312
312
} elseif ($ extensionAttributes ->getShippingAssignments () !== null ) {
313
313
return ;
314
314
}
315
- /** @var ShippingAssignmentInterface $shippingAssignment */
316
- $ shippingAssignments = $ this ->getShippingAssignmentBuilderDependency ();
317
- $ shippingAssignments ->setOrder ($ order );
318
- $ extensionAttributes ->setShippingAssignments ($ shippingAssignments ->create ());
315
+ $ this ->shippingAssignmentBuilder ->setOrder ($ order );
316
+ $ extensionAttributes ->setShippingAssignments ($ this ->shippingAssignmentBuilder ->create ());
319
317
$ order ->setExtensionAttributes ($ extensionAttributes );
320
318
}
321
319
322
- /**
323
- * Get the new ShippingAssignmentBuilder dependency for application code
324
- *
325
- * @return ShippingAssignmentBuilder
326
- * @deprecated 100.0.4
327
- */
328
- private function getShippingAssignmentBuilderDependency ()
329
- {
330
- if (!$ this ->shippingAssignmentBuilder instanceof ShippingAssignmentBuilder) {
331
- $ this ->shippingAssignmentBuilder = \Magento \Framework \App \ObjectManager::getInstance ()->get (
332
- \Magento \Sales \Model \Order \ShippingAssignmentBuilder::class
333
- );
334
- }
335
- return $ this ->shippingAssignmentBuilder ;
336
- }
337
-
338
320
/**
339
321
* Helper function that adds a FilterGroup to the collection.
340
322
*
You can’t perform that action at this time.
0 commit comments