芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/vendor/maatwebsite/excel/src/Jobs/CloseSheet.php
sheetExport = $sheetExport; $this->temporaryFile = $temporaryFile; $this->writerType = $writerType; $this->sheetIndex = $sheetIndex; } /** * @param Writer $writer * * @throws \PhpOffice\PhpSpreadsheet\Exception * @throws \PhpOffice\PhpSpreadsheet\Reader\Exception */ public function handle(Writer $writer) { $writer = $writer->reopen( $this->temporaryFile, $this->writerType ); $sheet = $writer->getSheetByIndex($this->sheetIndex); if ($this->sheetExport instanceof WithEvents) { $sheet->registerListeners($this->sheetExport->registerEvents()); } $sheet->close($this->sheetExport); $writer->write( $this->sheetExport, $this->temporaryFile, $this->writerType ); } }