summaryrefslogtreecommitdiffstats
path: root/lib/private/server.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/server.php')
-rw-r--r--lib/private/server.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 47bdee4b0f8..da705863078 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -186,6 +186,9 @@ class Server extends SimpleContainer implements IServerContainer {
}
return $router;
});
+ $this->registerService('Search', function($c){
+ return new Search();
+ });
$this->registerService('Db', function($c){
return new Db();
});
@@ -422,6 +425,13 @@ class Server extends SimpleContainer implements IServerContainer {
return $this->query('Router');
}
+ /**
+ * Returns a search instance
+ * @return \OCP\ISearch
+ */
+ function getSearch() {
+ return $this->query('Search');
+ }
/**
* Returns an instance of the db facade