add class AuditLogger
This commit is contained in:
parent
fd30911dd3
commit
656ce219ef
15
src/Database/AuditLogger.php
Normal file
15
src/Database/AuditLogger.php
Normal 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();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user