src/Leevel/Filesystem/Zip.php
public function makeConnect()
    {
        if (empty($this->option['path'])) {
            throw new InvalidArgumentException(
                'The zip requires path option.'
            );
        }

        if (!class_exists('League\Flysystem\ZipArchive\ZipArchiveAdapter')) {
            throw new InvalidArgumentException(
                'Please run composer require league/flysystem-ziparchive.'
            );
        }

        return new ZipArchiveAdapter($this->option['path']);
    }
public function makeConnect()
    {
        if (empty($this->option['path'])) {
            throw new InvalidArgumentException(
                'The zip requires path option.'
            );
        }

        if (!class_exists('League\Flysystem\ZipArchive\ZipArchiveAdapter')) {
            throw new InvalidArgumentException(
                'Please run composer require league/flysystem-ziparchive.'
            );
        }

        return new ZipArchiveAdapter($this->option['path']);
    }
创建连接.

@return \League\Flysystem\AdapterInterface