Skip to content

Commit fae6648

Browse files
author
Mike Weis
committed
Merge branch 'cart-price-rules' into FearlessKiwis-MAGETWO-43124-Cart-Price-Rules-staging-dashboard
2 parents f7dc06d + 19d6eef commit fae6648

File tree

1 file changed

+13
-7
lines changed
  • app/code/Magento/Backend/Helper/Dashboard

1 file changed

+13
-7
lines changed

app/code/Magento/Backend/Helper/Dashboard/Order.php

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,24 @@ class Order extends \Magento\Backend\Helper\Dashboard\AbstractDashboard
2323
/**
2424
* @param \Magento\Framework\App\Helper\Context $context
2525
* @param \Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection
26-
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
2726
*/
2827
public function __construct(
2928
\Magento\Framework\App\Helper\Context $context,
30-
\Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection,
31-
\Magento\Store\Model\StoreManagerInterface $storeManager
29+
\Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection
3230
) {
3331
$this->_orderCollection = $orderCollection;
34-
$this->_storeManager = $storeManager;
35-
parent::__construct(
36-
$context
37-
);
32+
parent::__construct($context);
33+
}
34+
35+
/**
36+
* @return \Magento\SalesRule\Model\RuleFactory
37+
* @deprecated
38+
*/
39+
public function getStoreManager()
40+
{
41+
if ($this->_storeManager instanceof \Magento\Store\Model\StoreManagerInterface) {
42+
$this->_storeManager = ObjectManager::getInstance()->get('\Magento\Store\Model\StoreManagerInterface');
43+
}
3844
}
3945

4046
/**

0 commit comments

Comments
 (0)