Laravel\SparkInstaller\Installation\DownloadSpark::extractZip PHP Method

extractZip() protected method

Extract the Spark Zip archive.
protected extractZip ( string $zipPath ) : void
$zipPath string
return void
    protected function extractZip($zipPath)
    {
        $archive = new ZipArchive();
        $archive->open($zipPath);
        $archive->extractTo($this->command->path . '/spark-new');
        $archive->close();
        @unlink($zipPath);
    }