From 324383b8e5ae8962912da8b5b5791efa25f87ec5 Mon Sep 17 00:00:00 2001 From: mattamon Date: Tue, 21 May 2024 08:51:32 +0200 Subject: [PATCH] Rename methods --- src/Version/Controller/CollectionController.php | 2 +- src/Version/Controller/GetController.php | 2 +- src/Version/Service/VersionDetailService.php | 2 +- src/Version/Service/VersionDetailServiceInterface.php | 2 +- src/Version/Service/VersionService.php | 2 +- src/Version/Service/VersionServiceInterface.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Version/Controller/CollectionController.php b/src/Version/Controller/CollectionController.php index 7635754d4..3755291e0 100644 --- a/src/Version/Controller/CollectionController.php +++ b/src/Version/Controller/CollectionController.php @@ -80,7 +80,7 @@ public function __construct( #[UnprocessableContentResponse] public function getVersions(#[MapQueryString] VersionParameters $parameters): JsonResponse { - $result = $this->hydratorService->getHydratedVersions( + $result = $this->hydratorService->getVersions( $parameters, $this->securityService->getCurrentUser() ); diff --git a/src/Version/Controller/GetController.php b/src/Version/Controller/GetController.php index 1a57ca987..974026626 100644 --- a/src/Version/Controller/GetController.php +++ b/src/Version/Controller/GetController.php @@ -69,7 +69,7 @@ public function __construct( public function getVersions(int $id): JsonResponse { return $this->jsonResponse( - $this->versionDetailService->getHydratedVersionData( + $this->versionDetailService->getVersionData( $id, $this->securityService->getCurrentUser() ) diff --git a/src/Version/Service/VersionDetailService.php b/src/Version/Service/VersionDetailService.php index 66fda981c..3106e4692 100644 --- a/src/Version/Service/VersionDetailService.php +++ b/src/Version/Service/VersionDetailService.php @@ -40,7 +40,7 @@ public function __construct( ) { } - public function getHydratedVersionData( + public function getVersionData( int $id, UserInterface $user ): AssetVersion|ImageVersion|DataObjectVersion|DocumentVersion { diff --git a/src/Version/Service/VersionDetailServiceInterface.php b/src/Version/Service/VersionDetailServiceInterface.php index ed1a83ada..dfc98b40c 100644 --- a/src/Version/Service/VersionDetailServiceInterface.php +++ b/src/Version/Service/VersionDetailServiceInterface.php @@ -27,7 +27,7 @@ */ interface VersionDetailServiceInterface { - public function getHydratedVersionData( + public function getVersionData( int $id, UserInterface $user ): AssetVersion|ImageVersion|DataObjectVersion|DocumentVersion; diff --git a/src/Version/Service/VersionService.php b/src/Version/Service/VersionService.php index 233390bab..8e08a6481 100644 --- a/src/Version/Service/VersionService.php +++ b/src/Version/Service/VersionService.php @@ -49,7 +49,7 @@ public function __construct( ) { } - public function getHydratedVersions( + public function getVersions( VersionParameters $parameters, UserInterface $user ): ListingResult { diff --git a/src/Version/Service/VersionServiceInterface.php b/src/Version/Service/VersionServiceInterface.php index ed5036433..70343ef3b 100644 --- a/src/Version/Service/VersionServiceInterface.php +++ b/src/Version/Service/VersionServiceInterface.php @@ -25,7 +25,7 @@ */ interface VersionServiceInterface { - public function getHydratedVersions( + public function getVersions( VersionParameters $parameters, UserInterface $user ): ListingResult;