From b68cb1fc0ce9cce0257bcc24d2d6dc41efba7367 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 31 Jan 2020 15:12:32 +0100 Subject: [PATCH] Use activity registration for the settings Signed-off-by: Roeland Jago Douma --- apps/settings/appinfo/info.xml | 17 +++++++++++++++++ apps/settings/lib/AppInfo/Application.php | 9 --------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/apps/settings/appinfo/info.xml b/apps/settings/appinfo/info.xml index d77d8690b44..f2325c3afca 100644 --- a/apps/settings/appinfo/info.xml +++ b/apps/settings/appinfo/info.xml @@ -34,4 +34,21 @@ OCA\Settings\Sections\Personal\Security OCA\Settings\Sections\Personal\SyncClients + + + + OCA\Settings\Activity\GroupSetting + OCA\Settings\Activity\SecuritySetting + OCA\Settings\Activity\Setting + + + OCA\Settings\Activity\SecurityFilter + + + OCA\Settings\Activity\GroupProvider + OCA\Settings\Activity\Provider + OCA\Settings\Activity\SecurityProvider + + + diff --git a/apps/settings/lib/AppInfo/Application.php b/apps/settings/lib/AppInfo/Application.php index 4f7cbf6b1ee..4d837500c4c 100644 --- a/apps/settings/lib/AppInfo/Application.php +++ b/apps/settings/lib/AppInfo/Application.php @@ -149,15 +149,6 @@ class Application extends App { } public function register() { - $activityManager = $this->getContainer()->getServer()->getActivityManager(); - $activityManager->registerSetting(Setting::class); // FIXME move to info.xml - $activityManager->registerProvider(Provider::class); // FIXME move to info.xml - $activityManager->registerFilter(SecurityFilter::class); // FIXME move to info.xml - $activityManager->registerSetting(SecuritySetting::class); // FIXME move to info.xml - $activityManager->registerProvider(SecurityProvider::class); // FIXME move to info.xml - $activityManager->registerSetting(GroupSetting::class); // FIXME move to info.xml - $activityManager->registerProvider(GroupProvider::class); // FIXME move to info.xml - Util::connectHook('OC_User', 'post_setPassword', $this, 'onChangePassword'); Util::connectHook('OC_User', 'changeUser', $this, 'onChangeInfo'); -- 2.39.5