- Copy complete Users module from CRM_Project - Fix syntax error in UserController.php (trailing whitespace) - Add admin users management functionality - Include user profiles, roles, and permissions - Add API endpoints for user management
30 lines
827 B
PHP
30 lines
827 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* Users Module - Widget Registration
|
|
*
|
|
* This file is automatically loaded when the Users 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 User Activity Widget
|
|
$widgetManager->registerWidget(
|
|
'users-activity',
|
|
'Users',
|
|
'Atividade de Utilizadores',
|
|
'App\\Modules\\Users\\Widgets\\UserActivityWidget',
|
|
[
|
|
'description' => 'Atividade recente dos utilizadores',
|
|
'size' => 'small',
|
|
'category' => 'users'
|
|
]
|
|
);
|
|
}
|