/**
  * Constructor.
  *
  * @param File                $file               The file to stream
  * @param FilesystemInterface $filesystem         The filesystem instance to get info with
  * @param int                 $status             The response status code
  * @param array               $headers            An array of response headers
  * @param bool                $public             Files are public by default
  * @param null|string         $contentDisposition The type of Content-Disposition to set automatically with the filename
  * @param bool                $autoEtag           Whether the ETag header should be automatically set
  */
 public function __construct($file, FilesystemInterface $filesystem, $status = 200, $headers = array(), $public = true, $contentDisposition = null, $autoEtag = false)
 {
     parent::__construct(null, $status, $headers);
     $this->filesystem = $filesystem;
     $this->setFile($file, $contentDisposition, $autoEtag);
     if ($public) {
         $this->setPublic();
     }
 }