aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/AppInfo
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-01-10 11:20:21 +0100
committerJoas Schilling <coding@schilljs.com>2018-01-10 11:20:21 +0100
commit3af6d112ce9253e0bbb6e545c767253bd251d9a8 (patch)
treedd55694ba532253cc4217fc7d073d7534e26a32d /apps/files/lib/AppInfo
parentda030b667d3ca8cbae8f02a72b2b2249a52b2e1a (diff)
downloadnextcloud-server-3af6d112ce9253e0bbb6e545c767253bd251d9a8.tar.gz
nextcloud-server-3af6d112ce9253e0bbb6e545c767253bd251d9a8.zip
Add events for favorites
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/lib/AppInfo')
-rw-r--r--apps/files/lib/AppInfo/Application.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/lib/AppInfo/Application.php b/apps/files/lib/AppInfo/Application.php
index 7042af10ca2..e55d1c549a5 100644
--- a/apps/files/lib/AppInfo/Application.php
+++ b/apps/files/lib/AppInfo/Application.php
@@ -81,13 +81,14 @@ class Application extends App {
$container->registerService('Tagger', function(IContainer $c) {
return $c->query('ServerContainer')->getTagManager()->load('files');
});
- $container->registerService('TagService', function(IContainer $c) {
+ $container->registerService('TagService', function(IContainer $c) use ($server) {
$homeFolder = $c->query('ServerContainer')->getUserFolder();
return new TagService(
$c->query('ServerContainer')->getUserSession(),
$c->query('ServerContainer')->getActivityManager(),
$c->query('Tagger'),
- $homeFolder
+ $homeFolder,
+ $server->getEventDispatcher()
);
});