protected function fetch($target) { $package = Package::factory($this->name, $this->version, $this->prettyVersion); $package->setDistUrl($this->url); $package->setRootDir($target); $downloader = new TGZDownloader($this->io, new Config()); if (null !== $downloader) { $downloader->download($package, $target); } }
protected function getFileName(Package $package, $path) { return parent::getFileName($package, $path) . '.tgz'; }