[TASK] FAL ResourceStorage must not access sys_file table directly 56/23756/2
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:49:06 +0000 (17:49 +0200)
commit26af3da316ef758a830d0039178c577d5b1f743d
tree6db10df9757a29df543df44dc5a10a4d62bcb5ec
parent1e336aea162dd63f3301dc49879ea85184a86b30
[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/23756
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/core/Classes/Resource/ResourceFactory.php