instances added god may help

This commit is contained in:
2026-02-23 12:58:19 +01:00
parent 25370a1a55
commit 99db252f60
290 changed files with 9858 additions and 4914 deletions

View File

@@ -2,8 +2,8 @@
use MintyPHP\Router;
use MintyPHP\Support\Guard;
use MintyPHP\Service\Mail\MailLogService;
use MintyPHP\Service\Access\PermissionService;
use MintyPHP\Service\Mail\MailServicesFactory;
Guard::requireLogin();
Guard::requirePermissionOrForbidden(PermissionService::MAIL_LOG_VIEW);
@@ -17,7 +17,8 @@ $status = trim((string) ($_GET['status'] ?? ''));
$createdFrom = trim((string) ($_GET['created_from'] ?? ''));
$createdTo = trim((string) ($_GET['created_to'] ?? ''));
$result = MailLogService::listPaged([
$mailLogService = (new MailServicesFactory())->createMailLogService();
$result = $mailLogService->listPaged([
'limit' => $limit,
'offset' => $offset,
'search' => $search,