feat: logs download events

This commit is contained in:
Brock H Caldwell
2025-11-01 23:58:15 -05:00
parent c4e8e9b35e
commit d28b743684
12 changed files with 195 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
namespace App\EventLog\Framework\Repository;
use App\EventLog\Framework\Entity\EventLog;
use App\User\Framework\Entity\User;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
@@ -17,11 +18,13 @@ class EventLogRepository extends ServiceEntityRepository
}
public function insert(
User $user,
string $type,
string $message,
array $context = []
): EventLog {
$eventLog = new EventLog()
->setUser($user)
->setType($type)
->setMessage($message)
->setContext($context);