diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-28 14:08:38 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-02-10 09:44:24 +0100 |
commit | aabd73912ec278eb082d7f47d88f350ac523d0c7 (patch) | |
tree | b7a26bf92f646b8d119b3afe69a3953b8d4c7f4f /lib/private/Search/SearchComposer.php | |
parent | f96f0f6cad011d73846cdf98ed8b0d35b180a2ef (diff) | |
download | nextcloud-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.php | 3 |
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(), ]); } } |