[TASK] Fix remaining calls to FileRepository for retrieving Files
In previous efforts the calls to the FileRepository, when retrieving File objects have been relocated to the ResourceFactory, since the coexistence causes problems when it comes to metadata and multiple instances of the same entity. As findByUid is defined in the AbstractRepository it was overlooked until now. This patch overrides the base method, deprecated it and calls the ResourceFactory, too. In addition all calls in core are replaced with the direct call. Resolves: #53690 Releases: 6.2 Change-Id: I89a665211bd7d400f339e27bd2b155958fe5daf1 Reviewed-on: https://review.typo3.org/26850 Reviewed-by: Ingo Schmitt Tested-by: Ingo Schmitt Reviewed-by: Frans Saris Tested-by: Frans Saris
Showing
- typo3/sysext/core/Classes/Resource/FileReference.php 1 addition, 10 deletionstypo3/sysext/core/Classes/Resource/FileReference.php
- typo3/sysext/core/Classes/Resource/FileRepository.php 11 additions, 0 deletionstypo3/sysext/core/Classes/Resource/FileRepository.php
- typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php 0 additions, 7 deletions.../sysext/core/Classes/Utility/File/ExtendedFileUtility.php
- typo3/sysext/extbase/Classes/Domain/Model/File.php 1 addition, 7 deletionstypo3/sysext/extbase/Classes/Domain/Model/File.php
- typo3/sysext/extbase/Classes/Domain/Model/FileReference.php 1 addition, 7 deletionstypo3/sysext/extbase/Classes/Domain/Model/FileReference.php
- typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php 5 additions, 2 deletions...ext/frontend/Classes/ContentObject/FilesContentObject.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/FilesContentObjectTest.php 10 additions, 10 deletions...ntend/Tests/Unit/ContentObject/FilesContentObjectTest.php
Please register or sign in to comment