config = $config; } /** * Determine if a module is enabled or not * * @param string $moduleName * @return bool */ public function isEnabled($moduleName) { $this->loadModuleConfiguration(); if (!$this->configData) { return false; } return !empty($this->configData[$moduleName]); } /** * Loads module configuration data */ private function loadModuleConfiguration() { $this->config->resetData(); if ($this->configData === null) { $this->configData = $this->config->get(ConfigOptionsListConstants::KEY_MODULES); } } }