diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-08-30 10:56:02 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-10-22 14:13:32 +0200 |
commit | fd6daf8d195b985fcdec82c0c53e8ba230765f41 (patch) | |
tree | dbfbbfb8424604daeb0fba63a8e0d2b7cda9a3ac /lib/private/Server.php | |
parent | 2b31b8289169e35be7bb1b129e9a978ddcd8f478 (diff) | |
download | nextcloud-server-fd6daf8d195b985fcdec82c0c53e8ba230765f41.tar.gz nextcloud-server-fd6daf8d195b985fcdec82c0c53e8ba230765f41.zip |
AutoCompletion backend
* introduce a Controller for requests
* introduce result sorting mechanism
* extend Comments to retrieve commentors (actors) in a tree
* add commenters sorter
* add share recipients sorter
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 29aee06d896..c03b7e04606 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -1011,6 +1011,11 @@ class Server extends ServerContainer implements IServerContainer { }); $this->registerAlias('CollaboratorSearch', \OCP\Collaboration\Collaborators\ISearch::class); + $this->registerService(\OCP\Collaboration\AutoComplete\IManager::class, function (Server $c) { + return new Collaboration\AutoComplete\Manager($c); + }); + $this->registerAlias('AutoCompleteManager', \OCP\Collaboration\AutoComplete\IManager::class); + $this->registerService('SettingsManager', function (Server $c) { $manager = new \OC\Settings\Manager( $c->getLogger(), @@ -1802,6 +1807,13 @@ class Server extends ServerContainer implements IServerContainer { } /** + * @return \OCP\Collaboration\AutoComplete\IManager + */ + public function getAutoCompleteManager(){ + return $this->query('AutoCompleteManager'); + } + + /** * Returns the LDAP Provider * * @return \OCP\LDAP\ILDAPProvider |