Skip to content

Commit

Permalink
Rename result to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed May 21, 2024
1 parent 2fe9405 commit c3136d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Dependency/Controller/CollectionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
}
}

0 comments on commit c3136d5

Please sign in to comment.