From aabd73912ec278eb082d7f47d88f350ac523d0c7 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 28 Jan 2021 14:08:38 +0100 Subject: Type the service registration Signed-off-by: Christoph Wurst --- lib/private/Http/WellKnown/RequestManager.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/private/Http') 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 $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; -- cgit v1.2.3