Add version to deprecation notice

As requested by @MorrisJobke
This commit is contained in:
Lukas Reschke 2015-04-20 10:30:16 +02:00
parent f672e120fc
commit a98b819366
2 changed files with 3 additions and 3 deletions

View File

@ -214,7 +214,7 @@ class OC_Response {
/**
* Send file as response, checking and setting caching headers
* @param string $filepath of file to send
* @deprecated Use \OCP\AppFramework\Http\StreamResponse or another AppFramework controller instead
* @deprecated 8.1.0 - Use \OCP\AppFramework\Http\StreamResponse or another AppFramework controller instead
*/
static public function sendFile($filepath) {
$fp = fopen($filepath, 'rb');

View File

@ -37,7 +37,7 @@ namespace OCP;
/**
* This class provides convenient functions to send the correct http response headers
* @since 4.0.0
* @deprecated Use AppFramework controllers instead and modify the response object
* @deprecated 8.1.0 - Use AppFramework controllers instead and modify the response object
*/
class Response {
/**
@ -104,7 +104,7 @@ class Response {
* Send file as response, checking and setting caching headers
* @param string $filepath of file to send
* @since 4.0.0
* @deprecated Use \OCP\AppFramework\Http\StreamResponse or another AppFramework controller instead
* @deprecated 8.1.0 - Use \OCP\AppFramework\Http\StreamResponse or another AppFramework controller instead
*/
static public function sendFile( $filepath ) {
\OC_Response::sendFile( $filepath );