Upload beautify
This commit is contained in:
19
app/Services/Uploads/UploadAuditService.php
Normal file
19
app/Services/Uploads/UploadAuditService.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Services\Uploads;
|
||||
|
||||
use App\Repositories\Uploads\AuditLogRepository;
|
||||
|
||||
final class UploadAuditService
|
||||
{
|
||||
public function __construct(private readonly AuditLogRepository $repository)
|
||||
{
|
||||
}
|
||||
|
||||
public function log(?int $userId, string $action, string $ip, array $meta = []): void
|
||||
{
|
||||
$this->repository->log($userId, $action, $ip, $meta);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user