- Add complete ErrorMonitoring module with controllers, models, services - Include error dashboard, error detail views, and error import functionality - Add error monitoring API endpoints and error collection services - Fix missing error monitoring system for critical error tracking
30 lines
876 B
PHP
30 lines
876 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* Error Monitoring Module - Widget Registration
|
|
*
|
|
* This file is automatically loaded when the ErrorMonitoring 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 Error Summary Widget
|
|
$widgetManager->registerWidget(
|
|
'error-monitoring-summary',
|
|
'ErrorMonitoring',
|
|
'Resumo de Erros',
|
|
'App\\Modules\\ErrorMonitoring\\Widgets\\ErrorSummaryWidget',
|
|
[
|
|
'description' => 'Resumo dos erros recentes do sistema',
|
|
'size' => 'medium',
|
|
'category' => 'monitoring'
|
|
]
|
|
);
|
|
}
|