Ipalaus\Geonames\Commands\ImportCommand::extractZip PHP Метод

extractZip() защищенный Метод

Given a zip archive, extract a the file and remove the original.
protected extractZip ( string $path, string $filename ) : string
$path string
$filename string
Результат string
    protected function extractZip($path, $filename)
    {
        $this->archive->open($path . '/' . $filename);
        $this->archive->extractTo($path . '/');
        $this->archive->close();
        $this->filesystem->delete($path . '/' . $filename);
        return str_replace('.zip', '.txt', $filename);
    }