Breaking: #88638 - Streamlined SoftRefParser reference lookup¶
The Soft Reference Parser is a registry to allow to find parsers (PHP Objects), for a given Parser Type (images, internal links, email links) to keep track of referenced records within arbitrary data (e.g. RTE text-fields).
Parsers can be added or overridden via the hook registry
Previously, the API method for fetching the proper parsers
TYPO3\CMS\Backend\Utility\BackendUtility::softRefParserObj() kept a runtime cache of created objects
per type within a global PHP array (
T3_VAR). This allowed to create objects
only once, even if there are multiple necessary parts required.
TYPO3's Core SoftRefParser does not keep any state, but the class now has a
SingletonInterface, which means that the object is now a re-used object
Calling the SoftRefParser factory method does not keep state of the parser
SingletonInterface is recommended for re-using SoftRefParser objects
if they need to keep state.
TYPO3 installations with extensions that use the API with custom parsers, or the global variable directly.
Replace the global variable access via the API call to
TYPO3\CMS\Backend\Utility\BackendUtility, if this
If a custom parser is in use, it is recommended to evaluate whether it contains
re-usable data and switch to