File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
app/code/Magento/Backend/Helper/Dashboard Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -23,18 +23,24 @@ class Order extends \Magento\Backend\Helper\Dashboard\AbstractDashboard
23
23
/**
24
24
* @param \Magento\Framework\App\Helper\Context $context
25
25
* @param \Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection
26
- * @param \Magento\Store\Model\StoreManagerInterface $storeManager
27
26
*/
28
27
public function __construct (
29
28
\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
32
30
) {
33
31
$ 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
+ }
38
44
}
39
45
40
46
/**
You can’t perform that action at this time.
0 commit comments