appState = $appState; $this->productMetadata = $productMetadata; $this->resource = $resource; } /** * Get module version info * * @param string $packageName * @return array|bool */ public function getVersion($packageName) { return $this->resource->getDataVersion($packageName); } /** * Gets the current MAGE_MODE setting * * @return string */ public function getMageMode() { return $this->appState->getMode(); } /** * Gets the current Magento version * * @return string */ public function getMageVersion() { return $this->productMetadata->getVersion(); } /** * Gets the current Magento Edition * * @return string */ public function getMageEdition() { return $this->productMetadata->getEdition(); } }