1111 use Magento \Store \Model \ScopeInterface ;
1212 use Magento \Store \Model \StoreManagerInterface ;
1313 use Magento \PageCache \Model \Cache \Server ;
14- use Magento \Framework \Module \ModuleListInterface ;
1514
1615 /**
1716 * @version 3.0.0
@@ -27,8 +26,8 @@ class Data extends AbstractHelper {
2726 protected $ _storeManager ;
2827 protected $ _http ;
2928 protected $ _server ;
30- protected $ _modules ;
3129
30+ const MODULE_VERSION = "3.0.0 " ;
3231 const DEBUG_DISABLED = 1 ;
3332 const DEBUG_ENABLED = 2 ;
3433
@@ -37,15 +36,13 @@ public function __construct (
3736 StoreManagerInterface $ storeManager ,
3837 WriterInterface $ configWriter ,
3938 Http $ http ,
40- Server $ server ,
41- ModuleListInterface $ modules
39+ Server $ server
4240 ) {
4341 $ this ->_configReader = $ configReader ;
4442 $ this ->_storeManager = $ storeManager ;
4543 $ this ->_configWriter = $ configWriter ;
4644 $ this ->_http = $ http ;
4745 $ this ->_server = $ server ;
48- $ this ->_modules = $ modules ;
4946 }
5047
5148 protected function _getConfigValue ( $ path , $ scope = ScopeInterface::SCOPE_STORE , $ storeId = null ) {
@@ -116,7 +113,7 @@ public function isDebugMode () {
116113 }
117114
118115 public function getModuleVersion () {
119- return $ this -> _modules -> getOne ( " JetRails_Varnish " ) [ " setup_version " ] ;
116+ return self :: MODULE_VERSION ;
120117 }
121118
122119 public function getVarnishServersWithPorts () {
0 commit comments