[TYPO3-dev] FileReference vs. File
Bernhard Kraft
kraftb at kraftb.at
Thu Jun 25 16:06:48 CEST 2015
Hi,
Does someone know why at this place in the core always the real file
object of a file reference is retrieved:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/refs/heads/TYPO3_7-3:/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php#l5476
AFAIK the FileReference Object is as good as a File object. In the
linked code I do not see the sense why the FileObject is retrieved from
a reference.
This avoids any later file processing (See @line 5532) to use data from
the fileReference object.
In my opinion it would make sense to either just pass on the
FileReference object in $file or at least to pass along any
$fileReference object to the ->process method.
greetings,
Bernhard
More information about the TYPO3-dev
mailing list