From 3a46a54f34ceef261d2b3504a57e1c2ae9400e9e Mon Sep 17 00:00:00 2001 From: khushboos Date: Wed, 7 May 2025 17:10:14 +0200 Subject: [PATCH] [ECP-9684]Fix OrderRepository constructor to support M2.4.8 --- Model/Sales/OrderRepository.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Model/Sales/OrderRepository.php b/Model/Sales/OrderRepository.php index 0919294075..3402c16f7c 100644 --- a/Model/Sales/OrderRepository.php +++ b/Model/Sales/OrderRepository.php @@ -25,6 +25,7 @@ use Magento\Sales\Model\OrderRepository as SalesOrderRepository; use Magento\Sales\Model\ResourceModel\Metadata; use Magento\Tax\Api\OrderTaxManagementInterface; +use Magento\Sales\Model\Order\ShippingAssignmentBuilder; class OrderRepository extends SalesOrderRepository { @@ -41,21 +42,21 @@ public function __construct( Metadata $metadata, SearchResultFactory $searchResultFactory, CollectionProcessorInterface $collectionProcessor = null, - OrderExtensionFactory $orderExtensionFactory = null, OrderTaxManagementInterface $orderTaxManagement = null, PaymentAdditionalInfoInterfaceFactory $paymentAdditionalInfoFactory = null, JsonSerializer $serializer = null, - JoinProcessorInterface $extensionAttributesJoinProcessor = null + JoinProcessorInterface $extensionAttributesJoinProcessor = null, + ShippingAssignmentBuilder $shippingAssignmentBuilder = null ) { parent::__construct( $metadata, $searchResultFactory, $collectionProcessor, - $orderExtensionFactory, $orderTaxManagement, $paymentAdditionalInfoFactory, $serializer, - $extensionAttributesJoinProcessor + $extensionAttributesJoinProcessor, + $shippingAssignmentBuilder ); $this->searchCriteriaBuilder = $searchCriteriaBuilder;