aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Search/SearchComposer.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-01-28 14:08:38 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-02-10 09:44:24 +0100
commitaabd73912ec278eb082d7f47d88f350ac523d0c7 (patch)
treeb7a26bf92f646b8d119b3afe69a3953b8d4c7f4f /lib/private/Search/SearchComposer.php
parentf96f0f6cad011d73846cdf98ed8b0d35b180a2ef (diff)
downloadnextcloud-server-aabd73912ec278eb082d7f47d88f350ac523d0c7.tar.gz
nextcloud-server-aabd73912ec278eb082d7f47d88f350ac523d0c7.zip
Type the service registration
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Search/SearchComposer.php')
-rw-r--r--lib/private/Search/SearchComposer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Search/SearchComposer.php b/lib/private/Search/SearchComposer.php
index 5290c2ac3c1..09355f3aa0e 100644
--- a/lib/private/Search/SearchComposer.php
+++ b/lib/private/Search/SearchComposer.php
@@ -96,13 +96,14 @@ class SearchComposer {
foreach ($registrations as $registration) {
try {
/** @var IProvider $provider */
- $provider = $this->container->query($registration['class']);
+ $provider = $this->container->query($registration->getService());
$this->providers[$provider->getId()] = $provider;
} catch (QueryException $e) {
// Log an continue. We can be fault tolerant here.
$this->logger->logException($e, [
'message' => 'Could not load search provider dynamically: ' . $e->getMessage(),
'level' => ILogger::ERROR,
+ 'app' => $registration->getAppId(),
]);
}
}