mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Merge pull request #57427 from nextcloud/fix/openmetrics_classes
This commit is contained in:
commit
17aa77e29f
2 changed files with 4 additions and 4 deletions
|
|
@ -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 @@ use Override;
|
|||
|
||||
class CommentsCountMetric implements IMetricFamily {
|
||||
public function __construct(
|
||||
private Connection $connection,
|
||||
private IDBConnection $connection,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ declare(strict_types=1);
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue