summaryrefslogtreecommitdiffstats
path: root/lib/private/Http
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/Http
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/Http')
-rw-r--r--lib/private/Http/WellKnown/RequestManager.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/Http/WellKnown/RequestManager.php b/lib/private/Http/WellKnown/RequestManager.php
index 5993a9b36e0..052e2d38ea7 100644
--- a/lib/private/Http/WellKnown/RequestManager.php
+++ b/lib/private/Http/WellKnown/RequestManager.php
@@ -27,6 +27,7 @@ declare(strict_types=1);
namespace OC\Http\WellKnown;
use OC\AppFramework\Bootstrap\Coordinator;
+use OC\AppFramework\Bootstrap\ServiceRegistration;
use OCP\AppFramework\QueryException;
use OCP\Http\WellKnown\IHandler;
use OCP\Http\WellKnown\IRequestContext;
@@ -99,8 +100,9 @@ class RequestManager {
$this->logger->debug(count($registrations) . " well known handlers registered");
return array_filter(
- array_map(function (array $registration) {
- $class = $registration['class'];
+ array_map(function (ServiceRegistration $registration) {
+ /** @var ServiceRegistration<IHandler> $registration */
+ $class = $registration->getService();
try {
$handler = $this->container->get($class);
@@ -115,6 +117,7 @@ class RequestManager {
} catch (QueryException $e) {
$this->logger->error("Could not load well known handler $class", [
'exception' => $e,
+ 'app' => $registration->getAppId(),
]);
return null;