From ec6dd1345c99ac083a7208e37fb777e76b2bf8a5 Mon Sep 17 00:00:00 2001 From: tristan Date: Fri, 29 May 2026 15:04:36 +0200 Subject: [PATCH] refactor(core) : AuditLog herite du standard de pagination global (10/50) --- .../ApiPlatform/Resource/AuditLogResource.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Module/Core/Infrastructure/ApiPlatform/Resource/AuditLogResource.php b/src/Module/Core/Infrastructure/ApiPlatform/Resource/AuditLogResource.php index 23361d3..4879894 100644 --- a/src/Module/Core/Infrastructure/ApiPlatform/Resource/AuditLogResource.php +++ b/src/Module/Core/Infrastructure/ApiPlatform/Resource/AuditLogResource.php @@ -29,18 +29,16 @@ use App\Module\Core\Infrastructure\ApiPlatform\State\Provider\AuditLogProvider; * ?performed_at[after]=2026-04-01T00:00:00Z * ?performed_at[before]=2026-04-30T23:59:59Z * - * La pagination est assuree par le provider via DbalPaginator (implementant - * ApiPlatform\State\Pagination\PaginatorInterface), ce qui genere - * automatiquement hydra:view — aucune construction manuelle. + * La pagination herite du standard global (10 items / page, max 50, cf. + * `config/packages/api_platform.yaml`). Elle est materialisee par le + * DbalPaginator du provider qui implemente PaginatorInterface — API Platform + * genere automatiquement hydra:view sans construction manuelle. */ #[ApiResource( shortName: 'AuditLog', operations: [ new GetCollection( uriTemplate: '/audit-logs', - paginationItemsPerPage: 30, - paginationClientItemsPerPage: true, - paginationMaximumItemsPerPage: 50, security: "is_granted('core.audit_log.view')", provider: AuditLogProvider::class, ),