diff --git a/Model/Config.php b/Model/Config.php index c6b4896..1df8282 100644 --- a/Model/Config.php +++ b/Model/Config.php @@ -15,6 +15,7 @@ use Magento\Store\Model\StoreManagerInterface; use Magento\Framework\Encryption\EncryptorInterface; use Magento\Framework\Filesystem\DirectoryList; +use Magento\Framework\Module\Manager as ModuleManager; class Config implements ConfigInterface { @@ -73,6 +74,11 @@ class Config implements ConfigInterface */ protected $directoryList; + /** + * @var ModuleManager + */ + protected $moduleManager; + /** * @param ScopeConfigInterface $scopeConfig * @param StoreManagerInterface $storeManager @@ -80,6 +86,8 @@ class Config implements ConfigInterface * @param ConfigCollectionFactory $configCollectionFactory * @param DateTime $dateTime * @param EncryptorInterface $encryptor + * @param DirectoryList $directoryList + * @param ModuleManager $moduleManager */ public function __construct( ScopeConfigInterface $scopeConfig, @@ -88,7 +96,8 @@ public function __construct( ConfigCollectionFactory $configCollectionFactory, DateTime $dateTime, EncryptorInterface $encryptor, - DirectoryList $directoryList + DirectoryList $directoryList, + ModuleManager $moduleManager ) { $this->scopeConfig = $scopeConfig; $this->storeManager = $storeManager; @@ -97,6 +106,7 @@ public function __construct( $this->dateTime = $dateTime; $this->encryptor = $encryptor; $this->directoryList = $directoryList; + $this->moduleManager = $moduleManager; } /**