Breaking: #107783 - Registration of Metadata Extractors via registerExtractionService
See forge#107783
Description
The method
TYPO3\
has been removed in favor of automatic registration via the
\TYPO3\.
Registration of Metadata extractors now happens automatically when the required
interface
\TYPO3\ is implemented
by a class. No further registration is necessary.
Impact
Any call to
Extractor is now a no-op
and has no effect in TYPO3 v14.0+. Metadata extractors are registered automatically
via the interface.
Affected installations
TYPO3 installations with custom extensions that register Metadata extractor classes
via the mentioned method in ext_. The extension scanner will
report usages.
Migration
The method is removed without deprecation in order to allow extensions to work with TYPO3 v13 (using the registration method) and v14+ (using automatic interface-based registration) without any further deprecations.
Remove the manual registration from ext_:
- $extractorRegistry = GeneralUtility::makeInstance(ExtractorRegistry::class);
- $extractorRegistry->registerExtractionService(MyExtractor::class);
Since custom extractors already implement the required interface
\TYPO3\, no further change
is required inside the extractor class itself.