From 0c534753d890d3cd555af7a04d6a21b1c5c829a1 Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Wed, 22 Sep 2021 13:15:55 +0200 Subject: [PATCH] [TASK] Make function filereferenceToApi public --- Classes/Utility/ApiUtility.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Classes/Utility/ApiUtility.php b/Classes/Utility/ApiUtility.php index f36dd0e..5f75905 100644 --- a/Classes/Utility/ApiUtility.php +++ b/Classes/Utility/ApiUtility.php @@ -213,7 +213,13 @@ class ApiUtility return $result; } - private function filereferenceToApi($object) { + public function filereferenceToApi($object) { + $this->objectManager = GeneralUtility::makeInstance( + ObjectManager::class + ); + $this->imageService = $this->objectManager->get( + imageService::class + ); $httpHost = GeneralUtility::getIndpEnv('HTTP_HOST'); $requestHost = GeneralUtility::getIndpEnv('TYPO3_REQUEST_HOST'); $publicUrl = $object->getPublicUrl();