diff options
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/application.php | 28 |
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(); }); |