*/
protected $archive;
- /**
- * package object of an existing package
- * @var Package
- */
- protected $package;
-
/**
* tar archive object
* @var Tar
* Creates a new PackageArchive object.
*
* @param string $archive
- * @param Package $package
*/
- public function __construct($archive, ?Package $package = null)
+ public function __construct($archive)
{
$this->archive = $archive; // be careful: this is a string within this class,
// but an object in the packageStartInstallForm.class!
- $this->package = $package;
}
/**
}
}
- $this->archive = new PackageArchive($this->queue->archive, $this->getPackage());
+ $this->archive = new PackageArchive($this->queue->archive);
if (!\str_starts_with(\realpath($this->archive->getArchive()), \TMP_DIR)) {
throw new \Exception('Refusing to handle an archive outside of the temporary directory.');
}