Symfony\Component\HttpFoundation\BinaryFileResponse::getFile PHP Method

getFile() public method

Gets the file.
public getFile ( ) : File
return Symfony\Component\HttpFoundation\File\File The file to stream
    public function getFile()
    {
        return $this->file;
    }

Usage Example

 public function testConstructWithNonAsciiFilename()
 {
     touch(sys_get_temp_dir() . '/fööö.html');
     $response = new BinaryFileResponse(sys_get_temp_dir() . '/fööö.html', 200, array(), true, 'attachment');
     @unlink(sys_get_temp_dir() . '/fööö.html');
     $this->assertSame('fööö.html', $response->getFile()->getFilename());
 }
All Usage Examples Of Symfony\Component\HttpFoundation\BinaryFileResponse::getFile