[TASK] FAL ResourceStorage must not access sys_file table directly 70/23470/4
authorSteffen Ritter <info@rs-websystems.de>
Wed, 11 Sep 2013 15:45:47 +0000 (17:45 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Wed, 11 Sep 2013 15:48:15 +0000 (17:48 +0200)
commit223644932fe593818715442967270e98b6306d54
treecaeee4f41af68d3001cf22aac989191c26f4bdf4
parentd972a39cdee5486b0b7fc2b1746fd92922e0047e
[TASK] FAL ResourceStorage must not access sys_file table directly

The ResourceStorage accesses the index table sys_file directly via
a call to the $GLOBALS[TYPO3_DB]. The interaction with the sys_file
index table should be managed only by an according repository to
allow changes within that mechanism.

This patch rearranges the factory method to use the according
call within the FileRepository and adapts it, as the FileRepository
will return a file Object instead of an array.

This serves as a preparation for further indexing optimisations,
which need IndexRecords to be handled centrally.

Releases: 6.2, 6.1, 6.0
Resolves: #51519
Change-Id: I5aa2d212b936b218db1808ea3d0384b8292287a9
Reviewed-on: https://review.typo3.org/23470
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Resource/ResourceFactory.php