1
+ <?php
2
+
3
+ /*
4
+ * @author M2E Pro Developers Team
5
+ * @copyright M2E LTD
6
+ * @license Commercial use is forbidden
7
+ */
8
+
9
+ namespace Ess \M2ePro \Block \Adminhtml \Magento \Context ;
10
+
11
+ use Magento \Backend \Block \Context ;
12
+
13
+ class Block extends Context
14
+ {
15
+ /** @var \Ess\M2ePro\Helper\Factory */
16
+ protected $ helperFactory ;
17
+
18
+ /** @var \Ess\M2ePro\Model\Factory */
19
+ protected $ modelFactory ;
20
+
21
+ /** @var \Ess\M2ePro\Model\ActiveRecord\Factory */
22
+ protected $ activeRecordFactory ;
23
+
24
+ /** @var \Ess\M2ePro\Model\ActiveRecord\Component\Parent\Factory */
25
+ protected $ parentFactory ;
26
+
27
+ public function __construct (
28
+ \Ess \M2ePro \Helper \Factory $ helperFactory ,
29
+ \Ess \M2ePro \Model \Factory $ modelFactory ,
30
+ \Ess \M2ePro \Model \ActiveRecord \Factory $ activeRecordFactory ,
31
+ \Ess \M2ePro \Model \ActiveRecord \Component \Parent \Factory $ parentFactory ,
32
+ \Magento \Framework \App \RequestInterface $ request ,
33
+ \Magento \Framework \View \LayoutInterface $ layout ,
34
+ \Magento \Framework \Event \ManagerInterface $ eventManager ,
35
+ \Magento \Framework \UrlInterface $ urlBuilder ,
36
+ \Magento \Framework \App \CacheInterface $ cache ,
37
+ \Magento \Framework \View \DesignInterface $ design ,
38
+ \Magento \Framework \Session \SessionManagerInterface $ session ,
39
+ \Magento \Framework \Session \SidResolverInterface $ sidResolver ,
40
+ \Magento \Framework \App \Config \ScopeConfigInterface $ scopeConfig ,
41
+ \Magento \Framework \View \Asset \Repository $ assetRepo ,
42
+ \Magento \Framework \View \ConfigInterface $ viewConfig ,
43
+ \Magento \Framework \App \Cache \StateInterface $ cacheState ,
44
+ \Psr \Log \LoggerInterface $ logger ,
45
+ \Magento \Framework \Escaper $ escaper ,
46
+ \Magento \Framework \Filter \FilterManager $ filterManager ,
47
+ \Magento \Framework \Stdlib \DateTime \TimezoneInterface $ localeDate ,
48
+ \Magento \Framework \Translate \Inline \StateInterface $ inlineTranslation ,
49
+ \Magento \Framework \AuthorizationInterface $ authorization
50
+ )
51
+ {
52
+ $ this ->helperFactory = $ helperFactory ;
53
+ $ this ->modelFactory = $ modelFactory ;
54
+ $ this ->activeRecordFactory = $ activeRecordFactory ;
55
+ $ this ->parentFactory = $ parentFactory ;
56
+
57
+ parent ::__construct (
58
+ $ request ,
59
+ $ layout ,
60
+ $ eventManager ,
61
+ $ urlBuilder ,
62
+ $ cache ,
63
+ $ design ,
64
+ $ session ,
65
+ $ sidResolver ,
66
+ $ scopeConfig ,
67
+ $ assetRepo ,
68
+ $ viewConfig ,
69
+ $ cacheState ,
70
+ $ logger ,
71
+ $ escaper ,
72
+ $ filterManager ,
73
+ $ localeDate ,
74
+ $ inlineTranslation ,
75
+ $ authorization
76
+ );
77
+ }
78
+
79
+ /**
80
+ * @return \Ess\M2ePro\Helper\Factory
81
+ */
82
+ public function getHelperFactory ()
83
+ {
84
+ return $ this ->helperFactory ;
85
+ }
86
+
87
+ /**
88
+ * @return \Ess\M2ePro\Model\Factory
89
+ */
90
+ public function getModelFactory ()
91
+ {
92
+ return $ this ->modelFactory ;
93
+ }
94
+
95
+ /**
96
+ * @return \Ess\M2ePro\Model\ActiveRecord\Factory
97
+ */
98
+ public function getActiveRecordFactory ()
99
+ {
100
+ return $ this ->activeRecordFactory ;
101
+ }
102
+
103
+ /**
104
+ * @return \Ess\M2ePro\Model\ActiveRecord\Component\Parent\Factory
105
+ */
106
+ public function getParentFactory ()
107
+ {
108
+ return $ this ->parentFactory ;
109
+ }
110
+ }
0 commit comments