aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-03-16 12:42:40 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2015-03-24 18:55:06 +0100
commit0ea387811151da1fc397fa876b8a59052388d6bc (patch)
tree1f3ba967cb5a286ce55ed8817f86f446671a26b2 /apps/files/appinfo
parent1bd141b65511983326f0076b676b14e1528ddd65 (diff)
downloadnextcloud-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.php7
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()
);
});