src/Viserio/Component/Http/Response/BinaryFileResponse.php
public function setContentDisposition(
        string $disposition,
        string $filename         = '',
        string $filenameFallback = ''
    ): ResponseInterface {
        if ($filenameFallback === '') {
            $filenameFallback = InteractsWithDisposition::encodedFallbackFilename($filename);
        }

        return InteractsWithDisposition::appendDispositionHeader($this, $disposition, $filename, $filenameFallback);
    }
public function setContentDisposition(
        string $disposition,
        string $filename         = '',
        string $filenameFallback = ''
    ): ResponseInterface {
        if ($filenameFallback === '') {
            $filenameFallback = InteractsWithDisposition::encodedFallbackFilename($filename);
        }

        return InteractsWithDisposition::appendDispositionHeader($this, $disposition, $filename, $filenameFallback);
    }
Sets the Content-Disposition header with the given filename.

@param string $disposition      ResponseHeaderBag::DISPOSITION_INLINE or ResponseHeaderBag::DISPOSITION_ATTACHMENT
@param string $filename         Optionally use this UTF-8 encoded filename instead of the real name of the file
@param string $filenameFallback A fallback filename, containing only ASCII characters. Defaults to an automatically encoded filename

@throws \InvalidArgumentException

@return \Psr\Http\Message\ResponseInterface