[TASK] Make function filereferenceToApi public

This commit is contained in:
Philipp Dieter 2021-09-22 13:15:55 +02:00
parent 57a4e34eb9
commit 0c534753d8

View File

@ -213,7 +213,13 @@ class ApiUtility
return $result; 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'); $httpHost = GeneralUtility::getIndpEnv('HTTP_HOST');
$requestHost = GeneralUtility::getIndpEnv('TYPO3_REQUEST_HOST'); $requestHost = GeneralUtility::getIndpEnv('TYPO3_REQUEST_HOST');
$publicUrl = $object->getPublicUrl(); $publicUrl = $object->getPublicUrl();