Merge conflict
Gerrit cannot merge this change. It needs a rebase onto main.
98380[TASK] Deprecate the array representation of soft references
Commit message
All soft reference parsers of the core create SoftReference objects, and the reference index, ext:impexp, ext:lowlevel and the link validator do not need the array representation of the matches anymore, except for the export files of ext:impexp. SoftReferenceParserResult::getMatchedElements(), passing arrays to SoftReferenceParserResult::create() and the array methods of AppendLinkHandlerElementsEvent are deprecated. The event gets setSoftReferences() as replacement of setElements(). The parser of ext:form creates SoftReference objects now. The reference index and the link validator use the internal toArray() of the result, which keeps matches of extensions given as arrays, until they are removed.
Resolves: #111739 Related: #111730 Releases: main Change-Id: I8cf10aa36e3488604729786bb9aa8332ed3c6d96
Test this change
Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch
- Check out patch set 1
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/80/98380/1 && git checkout FETCH_HEAD
- Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/80/98380/1 && git cherry-pick FETCH_HEAD
Review
-
Code review CR 0 Needs a vote
-
Verified V 0 Needs a vote
- core-ci +1 CI
Relation chain 5
-
98380 [TASK] Deprecate the array representation of soft references This change
- 98379[FEATURE] Select linkvalidator linktypes by the link type
- 98378[TASK] Replace soft reference tokens in one place
- 98377[FEATURE] Provide soft references in AppendLinkHandlerElementsEvent
- 98363[FEATURE] Provide soft references as value objects
Issues 2
Files 18
- typo3/sysext/core/Classes/Database/ReferenceIndex.php+2 −2
- typo3/sysext/core/Classes/DataHandling/Event/AppendLinkHandlerElementsEvent.php+29 −0
- typo3/sysext/core/Classes/DataHandling/SoftReference/SoftReferenceParserResult.php+37 −22
- typo3/sysext/core/Documentation/Changelog/15.0/Deprecation-111739-ArrayRepresentationOfSoftReferences.rstnew+88 −0
- typo3/sysext/core/Tests/Functional/DataHandling/SoftReference/TypolinkSoftReferenceParserRecordLinkTest.php+2 −2
- typo3/sysext/core/Tests/Functional/DataHandling/SoftReference/TypolinkSoftReferenceParserTest.php+8 −5
- typo3/sysext/core/Tests/Functional/DataHandling/SoftReference/TypolinkTagSoftReferenceParserRecordLinkTest.php+2 −2
- typo3/sysext/core/Tests/Functional/DataHandling/SoftReference/TypolinkTagSoftReferenceParserTest.php+3 −1
- typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/EmailSoftReferenceParserTest.php+2 −2
- typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/ExtensionPathSoftReferenceParserTest.php+1 −1
- typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/SoftReferenceParserResultTest.php+3 −1
- typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/SubstituteSoftReferenceParserTest.php+1 −1
- typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkSoftReferenceParserTest.php+2 −2
- typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/TypoLinkTagSoftReferenceParserTest.php+4 −4
- typo3/sysext/core/Tests/Unit/DataHandling/SoftReference/UrlSoftReferenceParserTest.php+2 −2
- typo3/sysext/form/Classes/SoftReference/FormPersistenceIdentifierSoftReferenceParser.php+11 −29
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php+7 −0
- typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php+1 −1
Review log 12
-
Benni Mack uploaded patch set 1 12/05/26, 21:50
-
core-ci voted on patch set 1 V +1 12/05/26, 22:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116478