diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-16 12:42:40 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-03-24 18:55:06 +0100 |
commit | 0ea387811151da1fc397fa876b8a59052388d6bc (patch) | |
tree | 1f3ba967cb5a286ce55ed8817f86f446671a26b2 /apps/files/appinfo | |
parent | 1bd141b65511983326f0076b676b14e1528ddd65 (diff) | |
download | nextcloud-server-0ea387811151da1fc397fa876b8a59052388d6bc.tar.gz nextcloud-server-0ea387811151da1fc397fa876b8a59052388d6bc.zip |
No longer directly output OC_Image for thumbnails
* Only use public interfaces
- Injected IPreview
* Added unit tests
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r-- | apps/files/appinfo/application.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files/appinfo/application.php b/apps/files/appinfo/application.php index 5203946f827..17637d6447c 100644 --- a/apps/files/appinfo/application.php +++ b/apps/files/appinfo/application.php @@ -8,7 +8,6 @@ namespace OCA\Files\Appinfo; -use OC\AppFramework\Utility\SimpleContainer; use OCA\Files\Controller\ApiController; use OCP\AppFramework\App; use \OCA\Files\Service\TagService; @@ -18,15 +17,17 @@ class Application extends App { public function __construct(array $urlParams=array()) { parent::__construct('files', $urlParams); $container = $this->getContainer(); + $server = $container->getServer(); /** * Controllers */ - $container->registerService('APIController', function (IContainer $c) { + $container->registerService('APIController', function (IContainer $c) use ($server) { return new ApiController( $c->query('AppName'), $c->query('Request'), - $c->query('TagService') + $c->query('TagService'), + $server->getPreviewManager() ); }); |