Fix: Use correct ILogger interface instead of OCP\Util\Logger type

This commit is contained in:
WLTBAgent
2026-02-16 16:26:47 +00:00
parent 53b0bd01f0
commit 54b45c2727
3 changed files with 6 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ declare(strict_types=1);
namespace OCA\AnalyticsHub\Service;
use OCA\AnalyticsHub\Model\ClientConfig;
use OCP\Util\Logger;
use OCP\ILogger;
/**
* Data Processor Service
@@ -13,7 +13,7 @@ use OCP\Util\Logger;
*/
class DataProcessor {
private ?Logger $logger;
private ?ILogger $logger;
// Default thresholds
private const DEFAULT_SIGNIFICANT_CHANGE_PCT = 20;

View File

@@ -7,8 +7,7 @@ namespace OCA\AnalyticsHub\Service;
use OCA\AnalyticsHub\Model\ClientConfig;
use OCA\AnalyticsHub\AppInfo\Application;
use OCP\IConfig;
use OCP\Util\Logger;
use OCP\Util\SimplePDOMapper;
use OCP\ILogger;
/**
* Google Analytics Data API v1 Service
@@ -17,7 +16,7 @@ use OCP\Util\SimplePDOMapper;
class GoogleAnalyticsService {
private IConfig $config;
private ?Logger $logger;
private ?ILogger $logger;
private ?DatabaseService $dbService;
// GA4 API endpoints

View File

@@ -6,7 +6,7 @@ namespace OCA\AnalyticsHub\Service;
use OCA\AnalyticsHub\Model\ClientConfig;
use OCP\IConfig;
use OCP\Util\Logger;
use OCP\ILogger;
/**
* LLM Service - Anthropic Claude API integration
@@ -15,7 +15,7 @@ use OCP\Util\Logger;
class LLMService {
private IConfig $config;
private ?Logger $logger;
private ?ILogger $logger;
// Anthropic API endpoint
private const ANTHROPIC_API = 'https://api.anthropic.com/v1/messages';