<?php
namespace App\Controller;
use App\Service\EntityLog\EntityLogService;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class EntityLogController extends BaseAbstractController
{
public function list(Request $request, EntityLogService $entityLogService): Response
{
$items = $entityLogService->getDefault(null, null,
null, null, null, ['createdAt', 'DESC']);
return $this->render('admin/entity_log/entity_log.html.twig', [
'items' => $items,
'entityLogService' => $entityLogService,
]);
}
}