public function __construct($cmdBinPath = '/bin/tar') { if ($cmdBinPath === null) { throw new UnimplementedFeatureException('no built-in support for GNU Tar'); } parent::__construct($cmdBinPath); }
public function __construct($cmdBinPath = '/usr/bin/unzip') { $usingCmd = $cmdBinPath; if (class_exists('ZipArchive', false)) { $this->zipArchive = new ZipArchive(); $usingCmd = null; } elseif ($usingCmd === null) { throw new UnsupportedMethodException('no built-in support for zip'); } parent::__construct($usingCmd); }