download.php 418 B

123456789101112131415161718192021
  1. <?php namespace System;
  2. class Download extends File {
  3. /**
  4. * Create a download response. The proper headers will be sent
  5. * to the browser to force the file to be downloaded.
  6. *
  7. *
  8. * @deprecated For older apps, use File class
  9. *
  10. * @param string $path
  11. * @param string $name
  12. * @return Response
  13. */
  14. public static function file($path, $name = null)
  15. {
  16. return parent::download($path, $name);
  17. }
  18. }