protected function downloadResponse($fileName, $contentType, $body)
    {
        $headers = array(
            'Content-Type' => $contentType,
            'Content-Disposition' => 'attachment; filename="'.$fileName.'"'
        );
        
        return $this->response($body, $headers);
    }
protected function downloadResponse($fileName, $contentType, $body)
    {
        $headers = array(
            'Content-Type' => $contentType,
            'Content-Disposition' => 'attachment; filename="'.$fileName.'"'
        );
        
        return $this->response($body, $headers);
    }
protected function downloadResponse ( $ fileName , $ contentType , $ body ) { $ headers = array ( 'Content-Type' => $ contentType , 'Content-Disposition' => 'attachment; filename="' . $ fileName . '"' ) ; return $ this -> response ( $ body , $ headers ) ; }
Build a download response
@param string $fileName
@param string $contentType
@param StreamInterface $body
@return Responses\Response
Build a download response