- Fix storage permissions to use 'www' user instead of 'www-data' - Fix UserModel getAllForAdmin query to avoid placeholders in LIMIT/OFFSET - Import missing modules: Advertising, Dashboard, Analytics - Update deploy script to copy files to public directory
30 lines
864 B
PHP
30 lines
864 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* Analytics Module - Widget Registration
|
|
*
|
|
* This file is automatically loaded when the Analytics module is detected.
|
|
* It registers all widgets that this module provides to the dashboard system.
|
|
*/
|
|
|
|
use App\Core\DashboardWidgetManager;
|
|
|
|
// Only register widgets if the widget manager is available
|
|
if (class_exists('App\Core\DashboardWidgetManager')) {
|
|
$widgetManager = DashboardWidgetManager::getInstance();
|
|
|
|
// Register Analytics Overview Widget
|
|
$widgetManager->registerWidget(
|
|
'analytics-overview',
|
|
'Analytics',
|
|
'Visão Geral Analytics',
|
|
'App\\Modules\\Analytics\\Widgets\\AnalyticsOverviewWidget',
|
|
[
|
|
'description' => 'Visão geral das métricas de analytics',
|
|
'size' => 'medium',
|
|
'category' => 'analytics'
|
|
]
|
|
);
|
|
}
|