Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-17 14:53:51 +0300
committerJoas Schilling <coding@schilljs.com>2016-11-17 14:53:51 +0300
commit64b58d2321aa66bf1b39708ce04780da8145240e (patch)
tree21dc380a4c11175e60fe519eb52c9ef54abe0d47 /apps/systemtags/appinfo
parentde983e61e3660964154d1c7f447ca8a2055cc2d6 (diff)
Update systemtags activity to new API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/systemtags/appinfo')
-rw-r--r--apps/systemtags/appinfo/app.php8
-rw-r--r--apps/systemtags/appinfo/info.xml10
2 files changed, 10 insertions, 8 deletions
diff --git a/apps/systemtags/appinfo/app.php b/apps/systemtags/appinfo/app.php
index e3be0d7556e..039df2ac9f7 100644
--- a/apps/systemtags/appinfo/app.php
+++ b/apps/systemtags/appinfo/app.php
@@ -46,14 +46,6 @@ $eventDispatcher->addListener(
}
);
-$activityManager = \OC::$server->getActivityManager();
-$activityManager->registerExtension(function() {
- $application = new \OCP\AppFramework\App('systemtags');
- /** @var \OCA\SystemTags\Activity\Extension $extension */
- $extension = $application->getContainer()->query('OCA\SystemTags\Activity\Extension');
- return $extension;
-});
-
$managerListener = function(ManagerEvent $event) use ($activityManager) {
$application = new \OCP\AppFramework\App('systemtags');
/** @var \OCA\SystemTags\Activity\Listener $listener */
diff --git a/apps/systemtags/appinfo/info.xml b/apps/systemtags/appinfo/info.xml
index 3ed01d3d8c0..1d5f33207a4 100644
--- a/apps/systemtags/appinfo/info.xml
+++ b/apps/systemtags/appinfo/info.xml
@@ -18,4 +18,14 @@
<settings>
<admin>OCA\SystemTags\Settings\Admin</admin>
</settings>
+
+ <activity>
+ <settings>
+ <setting>OCA\SystemTags\Activity\Setting</setting>
+ </settings>
+
+ <providers>
+ <provider>OCA\SystemTags\Activity\Provider</provider>
+ </providers>
+ </activity>
</info>