diff options
Diffstat (limited to 'apps/files_sharing/appinfo/application.php')
-rw-r--r-- | apps/files_sharing/appinfo/application.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_sharing/appinfo/application.php b/apps/files_sharing/appinfo/application.php index 8f953b236c4..5fa400db7d2 100644 --- a/apps/files_sharing/appinfo/application.php +++ b/apps/files_sharing/appinfo/application.php @@ -47,15 +47,13 @@ class Application extends App { return new ShareController( $c->query('AppName'), $c->query('Request'), - $c->query('UserSession'), - $server->getAppConfig(), $server->getConfig(), $c->query('URLGenerator'), $c->query('UserManager'), $server->getLogger(), $server->getActivityManager(), - $server->getShareManager(), - $server->getSession(), + $c->query('ShareManager'), + $c->query('Session'), $server->getPreviewManager() ); }); @@ -71,6 +69,12 @@ class Application extends App { /** * Core class wrappers */ + $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(); }); |