Breaking: #107945 - Class FlexFormService merged into FlexFormTools
See forge#107945
Description
The class
\TYPO3\ has been merged into
\TYPO3\.
The following methods are affected:
Flexis nowForm Service->convert Flex Form Content To Array ($flex Form Content, $language Pointer = 'l DEF', $value Pointer = 'v DEF'): array Flex. The method name is unchanged, but the method signature has been simplified.Form Tools->convert Flex Form Content To Array (string $flex Form Content): array Flexis nowForm Service->convert Flex Form Content To Sheets Array (string $flex Form Content, string $language Pointer = 'l DEF', string $value Pointer = 'v DEF'): array Flex. Again, the name is identical, but the parameters have been reduced.Form Tools->convert Flex Form Content To Sheets Array (string $flex Form Content): array - The helper method
Flexhas been made a private method withinForm Service->walk Flex Form Node () Flex.Form Tools
Impact
Instantiating or injecting
Flex
remains possible in TYPO3 v14 due to a maintained class alias for backward
compatibility.
This alias will be removed in TYPO3 v15.
Affected installations
Any extensions or TYPO3 installations using
Flex are affected.
The extension scanner will automatically detect these usages.
Migration
Extensions typically did not use the now internal helper method
walk.
In the unlikely case this private method was used, its functionality must now be implemented within the consuming extension.
The methods
convert and
convert have lost their second and third
arguments.
These parameters (
l and
v) were already fixed internally in
TYPO3 and could no longer be changed, so their removal has no functional impact.
To continue using these methods, extensions should inject
Flex instead of
Flex.
For extensions that need to remain compatible with both TYPO3 v13 and v14, it is
still possible to use
Flex for
now.
However, when adding compatibility for TYPO3 v15 (and dropping TYPO3 v13),
extensions must switch fully to
Flex.