2023-04-18 23:31:58 +02:00
|
|
|
<?php namespace RVR\Database;
|
|
|
|
|
|
|
|
use SokoWeb\Database\AuditLoggerBase;
|
|
|
|
|
|
|
|
class AuditLogger extends AuditLoggerBase
|
|
|
|
{
|
|
|
|
protected function getModifierId()
|
|
|
|
{
|
2023-04-28 20:58:19 +02:00
|
|
|
if (\Container::$request === null) {
|
|
|
|
return null;
|
|
|
|
}
|
2023-04-18 23:31:58 +02:00
|
|
|
$user = \Container::$request->user();
|
|
|
|
if ($user === null) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
return $user->getUniqueId();
|
|
|
|
}
|
|
|
|
}
|