storage = $storage; $this->config = $config; } /** * @return string */ public function getVersion() { $file = $this->storage . DIRECTORY_SEPARATOR . $this->versionFile; $version = 'n/a'; if (file_exists($file)) { $version = trim(file_get_contents($file)); } return $this->config->get('version', $version); } }