更新
This commit is contained in:
21
vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream2.php
vendored
Normal file
21
vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream2.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Writer;
|
||||
|
||||
use ZipStream\Option\Archive;
|
||||
use ZipStream\ZipStream;
|
||||
|
||||
class ZipStream2
|
||||
{
|
||||
/**
|
||||
* @param resource $fileHandle
|
||||
*/
|
||||
public static function newZipStream($fileHandle): ZipStream
|
||||
{
|
||||
$options = new Archive();
|
||||
$options->setEnableZip64(false);
|
||||
$options->setOutputStream($fileHandle);
|
||||
|
||||
return new ZipStream(null, $options);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user