[TASK] Refactor metadata handling in FAL
Meta data of files handled by FAL is fetched, created and updated in various places, which makes it hard to maintain the current code base. Albeit the method `_getMetaData()` is marked as internal, it has been marked as deprecated as well, because the method is widely used in the TYPO3 extension universe. For this reason, a MetaDataAspect is introduced that takes care of meta data handling on a low-level basis. In the same run, FAL's `Indexer` is now responsible for creating or updating such meta data records, the `ResourceStorage` now only tells whether auto-extraction is enabled. The meta data extraction, based on registered extractors implementing the `ExtractorInterface` interface, has been moved into a separate service class. Resolves: #85895 Releases: master Change-Id: Icb929a6226777dcea3868ee5c083cf13ff5a71f6 Reviewed-on: https://review.typo3.org/57908 Tested-by:TYPO3com <noreply@typo3.com> Reviewed-by:
Susanne Moog <susanne.moog@typo3.org> Tested-by:
Susanne Moog <susanne.moog@typo3.org> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/core/Classes/Resource/File.php 31 additions, 71 deletionstypo3/sysext/core/Classes/Resource/File.php
- typo3/sysext/core/Classes/Resource/Index/Indexer.php 40 additions, 52 deletionstypo3/sysext/core/Classes/Resource/Index/Indexer.php
- typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php 27 additions, 15 deletions...sysext/core/Classes/Resource/Index/MetaDataRepository.php
- typo3/sysext/core/Classes/Resource/MetaDataAspect.php 220 additions, 0 deletionstypo3/sysext/core/Classes/Resource/MetaDataAspect.php
- typo3/sysext/core/Classes/Resource/Processing/FileDeletionAspect.php 1 addition, 1 deletion...t/core/Classes/Resource/Processing/FileDeletionAspect.php
- typo3/sysext/core/Classes/Resource/ResourceStorage.php 0 additions, 6 deletionstypo3/sysext/core/Classes/Resource/ResourceStorage.php
- typo3/sysext/core/Classes/Resource/Service/ExtractorService.php 96 additions, 0 deletions...sysext/core/Classes/Resource/Service/ExtractorService.php
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-85895-DeprecateFile_getMetaData.rst 32 additions, 0 deletions...og/master/Deprecation-85895-DeprecateFile_getMetaData.rst
- typo3/sysext/core/Tests/Unit/Resource/FileTest.php 15 additions, 3 deletionstypo3/sysext/core/Tests/Unit/Resource/FileTest.php
- typo3/sysext/core/Tests/Unit/Resource/Index/IndexerTest.php 21 additions, 70 deletionstypo3/sysext/core/Tests/Unit/Resource/Index/IndexerTest.php
- typo3/sysext/core/Tests/Unit/Resource/MetaDataAspectTest.php 256 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Resource/MetaDataAspectTest.php
- typo3/sysext/core/Tests/Unit/Resource/Service/ExtractorServiceTest.php 165 additions, 0 deletions...core/Tests/Unit/Resource/Service/ExtractorServiceTest.php
- typo3/sysext/filelist/Classes/FileList.php 3 additions, 3 deletionstypo3/sysext/filelist/Classes/FileList.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php 7 additions, 0 deletions.../Configuration/ExtensionScanner/Php/MethodCallMatcher.php
Please register or sign in to comment