summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-24 12:03:22 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-05 11:00:14 +0200
commit5d8b941fea23f09586b825324d0dccd39284bc26 (patch)
tree643eabb151797d10a6c83c994c02aab71b18166e /lib/public/AppFramework
parent66ae43880b7d898e54a47d3a4651684d85a1e951 (diff)
downloadnextcloud-server-5d8b941fea23f09586b825324d0dccd39284bc26.tar.gz
nextcloud-server-5d8b941fea23f09586b825324d0dccd39284bc26.zip
Initial AppData
* Introduce simpleFS * Introduce IAppData * Introduce AppData Factory to get your AppData folder * Update FileDisplayResponse * AppData implements a ISimpleRoot but lazy. So only if an apps starts to access data will stuff get initialized Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r--lib/public/AppFramework/Http/FileDisplayResponse.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/public/AppFramework/Http/FileDisplayResponse.php b/lib/public/AppFramework/Http/FileDisplayResponse.php
index 22171e2b379..03a6fbec2dd 100644
--- a/lib/public/AppFramework/Http/FileDisplayResponse.php
+++ b/lib/public/AppFramework/Http/FileDisplayResponse.php
@@ -23,7 +23,6 @@
namespace OCP\AppFramework\Http;
use OCP\AppFramework\Http;
-use OCP\Files\File;
/**
* Class FileDisplayResponse
@@ -33,18 +32,18 @@ use OCP\Files\File;
*/
class FileDisplayResponse extends Response implements ICallbackResponse {
- /** @var File */
+ /** @var \OCP\Files\File|\OCP\Files\SimpleFS\ISimpleFile */
private $file;
/**
* FileDisplayResponse constructor.
*
- * @param File $file
+ * @param \OCP\Files\File|\OCP\Files\SimpleFS\ISimpleFile $file
* @param int $statusCode
* @param array $headers
* @since 9.2.0
*/
- public function __construct(File $file, $statusCode=Http::STATUS_OK,
+ public function __construct($file, $statusCode=Http::STATUS_OK,
$headers=[]) {
$this->file = $file;
$this->setStatus($statusCode);