storage = $storage; $this->config = $config; } public function getVersion(): string { $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); } }