TYPO3\CMS\Extbase\Service::getImageUri in CLI Mode
i´ve the follwoing problem in TYPO3 v9.5.5 / Composer-Mode, Public-Root is "web":
I use this TYPO3-Service "TYPO3\CMS\Extbase\Service::getImageUri" to retrieve the image path´s, e.g. for a Json-File.
But there is some confusion with the "uriPrefix":
If this is called from the frontend, always fine - the path will be correct: fileadmin/...
but I run this service also in a Command/CLI and it seems the calculated "doc-root" is the composer-dir": */web/*fileadmin/...
This path is wrong against the frontend because the doc-Root itself is "web".
My question is now:
Where ever I have to set a special "TYPO3_SITE_PATH" manually for CLI-Mode or is it a normal behavior or maybe a bug?