public function createStreamingResponse($filePath, $fileName, $type = 'application/octet-stream')
    {
        $response = new StreamedResponse();
        $this->setStreamCallBack($response, $filePath);
        $this->setStreamHeaders($response, $fileName, $type);

        return $response;
    }
public function createStreamingResponse($filePath, $fileName, $type = 'application/octet-stream')
    {
        $response = new StreamedResponse();
        $this->setStreamCallBack($response, $filePath);
        $this->setStreamHeaders($response, $fileName, $type);

        return $response;
    }
public function createStreamingResponse ( $ filePath , $ fileName , $ type = 'application/octet-stream' ) { $ response = new StreamedResponse ( ) ; $ this -> setStreamCallBack ( $ response , $ filePath ) ; $ this -> setStreamHeaders ( $ response , $ fileName , $ type ) ; return $ response ; }
Handles creating a streaming response for the given file path and uses the given file name

@param        $filePath
@param        $fileName
@param string $type
@return StreamedResponse
Handles creating a streaming response for the given file path and uses the given file name