diff --git a/apps/comments/lib/OpenMetrics/CommentsCountMetric.php b/apps/comments/lib/OpenMetrics/CommentsCountMetric.php index d0c9233b7c314..c22f067989885 100644 --- a/apps/comments/lib/OpenMetrics/CommentsCountMetric.php +++ b/apps/comments/lib/OpenMetrics/CommentsCountMetric.php @@ -7,7 +7,7 @@ namespace OCA\Comments\OpenMetrics; use Generator; -use OC\DB\Connection; +use OCP\IDBConnection; use OCP\OpenMetrics\IMetricFamily; use OCP\OpenMetrics\Metric; use OCP\OpenMetrics\MetricType; @@ -15,7 +15,7 @@ class CommentsCountMetric implements IMetricFamily { public function __construct( - private Connection $connection, + private IDBConnection $connection, ) { } diff --git a/lib/private/OpenMetrics/ExporterManager.php b/lib/private/OpenMetrics/ExporterManager.php index c66846be49224..a67231eca7ed5 100644 --- a/lib/private/OpenMetrics/ExporterManager.php +++ b/lib/private/OpenMetrics/ExporterManager.php @@ -10,11 +10,11 @@ namespace OC\OpenMetrics; use Generator; -use OC\Log\PsrLoggerAdapter; use OCP\App\IAppManager; use OCP\IConfig; use OCP\OpenMetrics\IMetricFamily; use OCP\Server; +use Psr\Log\LoggerInterface; class ExporterManager { private array $skippedClasses; @@ -22,7 +22,7 @@ class ExporterManager { public function __construct( private IAppManager $appManager, - private PsrLoggerAdapter $logger, + private LoggerInterface $logger, IConfig $config, ) { // Use values as keys for faster lookups