summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-20 10:14:03 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-20 21:12:26 +0100
commit18421e7e686a4ed90f276925322b5d168f347e30 (patch)
tree7436a074e3ab40e03e8f1d1b0e0f14eb8428017e /apps/files_sharing/appinfo
parent67f5216160e9045a7fcbb152eda34fbf5e0833d4 (diff)
downloadnextcloud-server-18421e7e686a4ed90f276925322b5d168f347e30.tar.gz
nextcloud-server-18421e7e686a4ed90f276925322b5d168f347e30.zip
Directly get from the server container
* Updated unit tests
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/application.php28
1 files changed, 5 insertions, 23 deletions
diff --git a/apps/files_sharing/appinfo/application.php b/apps/files_sharing/appinfo/application.php
index 3971b04097f..e4a2262fece 100644
--- a/apps/files_sharing/appinfo/application.php
+++ b/apps/files_sharing/appinfo/application.php
@@ -48,14 +48,14 @@ class Application extends App {
$c->query('AppName'),
$c->query('Request'),
$server->getConfig(),
- $c->query('URLGenerator'),
- $c->query('UserManager'),
+ $server->getURLGenerator(),
+ $server->getUserManager(),
$server->getLogger(),
$server->getActivityManager(),
- $c->query('ShareManager'),
- $c->query('Session'),
+ $server->getShareManager(),
+ $server->getSession(),
$server->getPreviewManager(),
- $c->query('RootFolder')
+ $server->getRootFolder()
);
});
$container->registerService('ExternalSharesController', function (SimpleContainer $c) {
@@ -70,24 +70,6 @@ class Application extends App {
/**
* Core class wrappers
*/
- $container->registerService('RootFolder', function(SimpleContainer $c) use ($server) {
- return $server->getRootFolder();
- });
- $container->registerService('Session', function(SimpleContainer $c) use ($server) {
- return $server->getSession();
- });
- $container->registerService('ShareManager', function(SimpleContainer $c) use ($server) {
- return $server->getShareManager();
- });
- $container->registerService('UserSession', function (SimpleContainer $c) use ($server) {
- return $server->getUserSession();
- });
- $container->registerService('URLGenerator', function (SimpleContainer $c) use ($server) {
- return $server->getUrlGenerator();
- });
- $container->registerService('UserManager', function (SimpleContainer $c) use ($server) {
- return $server->getUserManager();
- });
$container->registerService('HttpClientService', function (SimpleContainer $c) use ($server) {
return $server->getHTTPClientService();
});