add class AuditLogger

This commit is contained in:
Bence Pőcze 2023-04-18 23:31:58 +02:00
parent fd30911dd3
commit 656ce219ef
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -0,0 +1,15 @@
<?php namespace RVR\Database;
use SokoWeb\Database\AuditLoggerBase;
class AuditLogger extends AuditLoggerBase
{
protected function getModifierId()
{
$user = \Container::$request->user();
if ($user === null) {
return null;
}
return $user->getUniqueId();
}
}