diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-04-10 11:46:20 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-04-10 11:46:20 -0100 |
commit | 6684bf457030f46825b785a18d0029d2fccd0f87 (patch) | |
tree | 3cf93c71d0ae1f74ce09953023d4d233dfa08f95 /lib/private/FullTextSearch/FullTextSearchManager.php | |
parent | d1e4d614daa52503b1a0bb5ebcaf6a7d2b33edb7 (diff) | |
download | nextcloud-server-6684bf457030f46825b785a18d0029d2fccd0f87.tar.gz nextcloud-server-6684bf457030f46825b785a18d0029d2fccd0f87.zip |
+isAvailable()
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/FullTextSearch/FullTextSearchManager.php')
-rw-r--r-- | lib/private/FullTextSearch/FullTextSearchManager.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/private/FullTextSearch/FullTextSearchManager.php b/lib/private/FullTextSearch/FullTextSearchManager.php index 444774fb4a7..8ab1af05b0e 100644 --- a/lib/private/FullTextSearch/FullTextSearchManager.php +++ b/lib/private/FullTextSearch/FullTextSearchManager.php @@ -85,6 +85,21 @@ class FullTextSearchManager implements IFullTextSearchManager { $this->searchService = $searchService; } + /** + * @since 16.0.0 + * + * @return bool + */ + public function isAvailable(): bool { + if ($this->indexService === null || + $this->providerService === null || + $this->searchService === null) { + return false; + } + + return true; + } + /** * @return IProviderService |