Fix: Use correct ILogger interface instead of OCP\Util\Logger type
This commit is contained in:
@@ -5,7 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace OCA\AnalyticsHub\Service;
|
namespace OCA\AnalyticsHub\Service;
|
||||||
|
|
||||||
use OCA\AnalyticsHub\Model\ClientConfig;
|
use OCA\AnalyticsHub\Model\ClientConfig;
|
||||||
use OCP\Util\Logger;
|
use OCP\ILogger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data Processor Service
|
* Data Processor Service
|
||||||
@@ -13,7 +13,7 @@ use OCP\Util\Logger;
|
|||||||
*/
|
*/
|
||||||
class DataProcessor {
|
class DataProcessor {
|
||||||
|
|
||||||
private ?Logger $logger;
|
private ?ILogger $logger;
|
||||||
|
|
||||||
// Default thresholds
|
// Default thresholds
|
||||||
private const DEFAULT_SIGNIFICANT_CHANGE_PCT = 20;
|
private const DEFAULT_SIGNIFICANT_CHANGE_PCT = 20;
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ namespace OCA\AnalyticsHub\Service;
|
|||||||
use OCA\AnalyticsHub\Model\ClientConfig;
|
use OCA\AnalyticsHub\Model\ClientConfig;
|
||||||
use OCA\AnalyticsHub\AppInfo\Application;
|
use OCA\AnalyticsHub\AppInfo\Application;
|
||||||
use OCP\IConfig;
|
use OCP\IConfig;
|
||||||
use OCP\Util\Logger;
|
use OCP\ILogger;
|
||||||
use OCP\Util\SimplePDOMapper;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Google Analytics Data API v1 Service
|
* Google Analytics Data API v1 Service
|
||||||
@@ -17,7 +16,7 @@ use OCP\Util\SimplePDOMapper;
|
|||||||
class GoogleAnalyticsService {
|
class GoogleAnalyticsService {
|
||||||
|
|
||||||
private IConfig $config;
|
private IConfig $config;
|
||||||
private ?Logger $logger;
|
private ?ILogger $logger;
|
||||||
private ?DatabaseService $dbService;
|
private ?DatabaseService $dbService;
|
||||||
|
|
||||||
// GA4 API endpoints
|
// GA4 API endpoints
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace OCA\AnalyticsHub\Service;
|
|||||||
|
|
||||||
use OCA\AnalyticsHub\Model\ClientConfig;
|
use OCA\AnalyticsHub\Model\ClientConfig;
|
||||||
use OCP\IConfig;
|
use OCP\IConfig;
|
||||||
use OCP\Util\Logger;
|
use OCP\ILogger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LLM Service - Anthropic Claude API integration
|
* LLM Service - Anthropic Claude API integration
|
||||||
@@ -15,7 +15,7 @@ use OCP\Util\Logger;
|
|||||||
class LLMService {
|
class LLMService {
|
||||||
|
|
||||||
private IConfig $config;
|
private IConfig $config;
|
||||||
private ?Logger $logger;
|
private ?ILogger $logger;
|
||||||
|
|
||||||
// Anthropic API endpoint
|
// Anthropic API endpoint
|
||||||
private const ANTHROPIC_API = 'https://api.anthropic.com/v1/messages';
|
private const ANTHROPIC_API = 'https://api.anthropic.com/v1/messages';
|
||||||
|
|||||||
Reference in New Issue
Block a user