From 2c699e090179a2ca235d28540b5999e27c36b9de Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 22 Jun 2020 12:19:34 +0200 Subject: Migrate comments to unified search API Signed-off-by: Christoph Wurst --- apps/comments/lib/AppInfo/Application.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/comments/lib/AppInfo') diff --git a/apps/comments/lib/AppInfo/Application.php b/apps/comments/lib/AppInfo/Application.php index 8bcf17b2afe..fafac0c6040 100644 --- a/apps/comments/lib/AppInfo/Application.php +++ b/apps/comments/lib/AppInfo/Application.php @@ -35,6 +35,7 @@ use OCA\Comments\Listener\CommentsEntityEventListener; use OCA\Comments\Listener\LoadAdditionalScripts; use OCA\Comments\Listener\LoadSidebarScripts; use OCA\Comments\Notification\Notifier; +use OCA\Comments\Search\LegacyProvider; use OCA\Comments\Search\Provider; use OCA\Files\Event\LoadAdditionalScriptsEvent; use OCA\Files\Event\LoadSidebar; @@ -70,6 +71,7 @@ class Application extends App implements IBootstrap { CommentsEntityEvent::EVENT_ENTITY, CommentsEntityEventListener::class ); + $context->registerSearchProvider(Provider::class); } public function boot(IBootContext $context): void { @@ -79,7 +81,7 @@ class Application extends App implements IBootstrap { $jsSettingsHelper = new JSSettingsHelper($context->getServerContainer()); Util::connectHook('\OCP\Config', 'js', $jsSettingsHelper, 'extend'); - $context->getServerContainer()->getSearch()->registerProvider(Provider::class, ['apps' => ['files']]); + $context->getServerContainer()->getSearch()->registerProvider(LegacyProvider::class, ['apps' => ['files']]); } protected function registerNotifier(IServerContainer $container) { -- cgit v1.2.3