summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-15 09:41:51 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-20 21:12:26 +0100
commit717697313b07106fd7941b83ff0271272c2c7791 (patch)
tree5a7b062392ea014f952fa8e43c07724be8059f8f /apps/files_sharing/appinfo
parent0ebc92c44ab6332e74e88fb3a32e860139417677 (diff)
downloadnextcloud-server-717697313b07106fd7941b83ff0271272c2c7791.tar.gz
nextcloud-server-717697313b07106fd7941b83ff0271272c2c7791.zip
[Share 2.0] Move tests over the sharemanager
Nice side effect... pure unit tests!
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r--apps/files_sharing/appinfo/application.php12
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();
});