summaryrefslogtreecommitdiffstats
path: root/apps/comments/lib/AppInfo/Application.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-04-18 11:29:49 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-07-25 18:53:44 +0200
commit8c7969e7301cb88dc6a94565ef8903c70117e750 (patch)
treeb6b8026ac451449f4137feb9115b26628d86ec62 /apps/comments/lib/AppInfo/Application.php
parent80207d72fa5de7b88dd8fd180acc528a3d9fa8da (diff)
downloadnextcloud-server-8c7969e7301cb88dc6a94565ef8903c70117e750.tar.gz
nextcloud-server-8c7969e7301cb88dc6a94565ef8903c70117e750.zip
Allow to search by comments
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/comments/lib/AppInfo/Application.php')
-rw-r--r--apps/comments/lib/AppInfo/Application.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/comments/lib/AppInfo/Application.php b/apps/comments/lib/AppInfo/Application.php
index cbf2733cf3d..3ad00562736 100644
--- a/apps/comments/lib/AppInfo/Application.php
+++ b/apps/comments/lib/AppInfo/Application.php
@@ -27,6 +27,7 @@ use OCA\Comments\Controller\Notifications;
use OCA\Comments\EventHandler;
use OCA\Comments\JSSettingsHelper;
use OCA\Comments\Notification\Notifier;
+use OCA\Comments\Search\Provider;
use OCP\AppFramework\App;
use OCP\Comments\CommentsEntityEvent;
use OCP\Util;
@@ -45,11 +46,15 @@ class Application extends App {
}
public function register() {
- $dispatcher = $this->getContainer()->getServer()->getEventDispatcher();
+ $server = $this->getContainer()->getServer();
+
+ $dispatcher = $server->getEventDispatcher();
$this->registerSidebarScripts($dispatcher);
$this->registerDavEntity($dispatcher);
$this->registerNotifier();
$this->registerCommentsEventHandler();
+
+ $server->getSearch()->registerProvider(Provider::class, ['apps' => ['files']]);
}
protected function registerSidebarScripts(EventDispatcherInterface $dispatcher) {