sendBodyByBinary example

/** * output download file text. * * @return DownloadResponse * * @throws DownloadException */
    public function sendBody()
    {
        if ($this->binary !== null) {
            return $this->sendBodyByBinary();
        }

        if ($this->file !== null) {
            return $this->sendBodyByFilePath();
        }

        throw DownloadException::forNotFoundDownloadSource();
    }

    /** * output download text by file. * * @return DownloadResponse */
Home | Imprint | This part of the site doesn't use cookies.