/**
  * Download a file.
  *
  * @param FileLocator    $locator
  * @param FileDownloader $downloader
  * @param                $folder
  * @param                $path
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function download(FileLocator $locator, FileDownloader $downloader, $folder, $name)
 {
     if (!($file = $locator->locate($folder, $name))) {
         abort(404);
     }
     return $downloader->download($file);
 }
 /**
  * Download a file.
  *
  * @param FileLocator    $locator
  * @param FileDownloader $downloader
  * @param                $disk
  * @param                $path
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function download(FileLocator $locator, FileDownloader $downloader, $disk, $path)
 {
     if (!($file = $locator->locate($disk, $path))) {
         abort(404);
     }
     return $downloader->download($file);
 }