2011-06-08 23:45:08 -05:00
|
|
|
<?php namespace System;
|
|
|
|
|
|
2011-06-17 00:42:23 -05:00
|
|
|
class Download extends File {
|
2011-06-08 23:45:08 -05:00
|
|
|
|
|
|
|
|
/**
|
2011-06-16 20:40:30 -05:00
|
|
|
* Create a download response. The proper headers will be sent
|
|
|
|
|
* to the browser to force the file to be downloaded.
|
2011-06-08 23:45:08 -05:00
|
|
|
*
|
2011-06-17 00:42:23 -05:00
|
|
|
*
|
|
|
|
|
* @deprecated For older apps, use File class
|
|
|
|
|
*
|
2011-06-08 23:45:08 -05:00
|
|
|
* @param string $path
|
|
|
|
|
* @param string $name
|
|
|
|
|
* @return Response
|
|
|
|
|
*/
|
|
|
|
|
public static function file($path, $name = null)
|
|
|
|
|
{
|
2011-06-17 00:42:23 -05:00
|
|
|
return parent::download($path, $name);
|
2011-06-08 23:45:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|