Laravel\Installer\Console\NewCommand::extract PHP Method

extract() protected method

Extract the Zip file into the given directory.
protected extract ( string $zipFile, string $directory )
$zipFile string
$directory string
    protected function extract($zipFile, $directory)
    {
        $archive = new ZipArchive();
        $archive->open($zipFile);
        $archive->extractTo($directory);
        $archive->close();
        return $this;
    }