From c3136d5b8469eb8c689039ef45a3ec2677170b12 Mon Sep 17 00:00:00 2001 From: mattamon Date: Tue, 21 May 2024 08:48:12 +0200 Subject: [PATCH] Rename result to collection --- src/Dependency/Controller/CollectionController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Dependency/Controller/CollectionController.php b/src/Dependency/Controller/CollectionController.php index d05b3b59a..749449bed 100644 --- a/src/Dependency/Controller/CollectionController.php +++ b/src/Dependency/Controller/CollectionController.php @@ -84,15 +84,15 @@ public function __construct( #[UnprocessableContentResponse] public function getDependencies(#[MapQueryString] DependencyParameters $parameters): JsonResponse { - $result = $this->hydratorService->getDependencies( + $collection = $this->hydratorService->getDependencies( $parameters, $this->securityService->getCurrentUser() ); return $this->getPaginatedCollection( $this->serializer, - $result->getItems(), - $result->getTotalItems(), + $collection->getItems(), + $collection->getTotalItems(), ); } }