src/SMB/Arrayto/Plugins/Csv/Downloader.php
public function downloadExistsFileUsingWriter($fileName, Writable $writer)
    {
        header("Content-Type: text/csv; charset={$this->getHeaderCharset()}");
        header("Content-Disposition: attachment; filename={$fileName}");

        $writer->write();
        readfile($writer->getFileName());
    }
public function downloadExistsFileUsingWriter($fileName, Writable $writer)
    {
        header("Content-Type: text/csv; charset={$this->getHeaderCharset()}");
        header("Content-Disposition: attachment; filename={$fileName}");

        $writer->write();
        readfile($writer->getFileName());
    }
public function downloadExistsFileUsingWriter ( $ fileName , Writable $ writer ) { header ( "Content-Type: text/csv; charset={$this->getHeaderCharset()}" ) ; header ( "Content-Disposition: attachment; filename={$fileName}" ) ; $ writer -> write ( ) ; readfile ( $ writer -> getFileName ( ) ) ; }
download an existing file using Writer
@param string $fileName
@param \SMB\Arrayto\Interfaces\Writable $writer
download an existing file using Writer