Skip to content

Commit 3a7c327

Browse files
AnshuMishra17rostyslav-hymon
authored andcommitted
Added backward compatibility.
Added backward compatibility for the new orderManagementInterface dependency and made the variable $orderManagement private.
1 parent 1137831 commit 3a7c327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Sales/Controller/Adminhtml/Order/MassUnhold.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class MassUnhold extends AbstractMassAction
2121
/**
2222
* @var OrderManagementInterface
2323
*/
24-
protected $orderManagement;
24+
private $orderManagement;
2525

2626
/**
2727
* @param Context $context
@@ -33,7 +33,7 @@ public function __construct(Context $context, Filter $filter, CollectionFactory
3333
{
3434
parent::__construct($context, $filter);
3535
$this->collectionFactory = $collectionFactory;
36-
$this->orderManagement = $orderManagement;
36+
$this->orderManagement = $orderManagement ?: \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Sales\Api\OrderManagementInterface::class);
3737
}
3838

3939
/**

0 commit comments

Comments
 (0)